1
votes

I have a Hadoop 2.8.1 installation on a macOS Sierra (Darwin Kernel version 16.7.0) and it's working fine, except the application/tasks tracking.

1) At first, I thought it was a problem with the Resource Manager web interface. So:

2) Nor even on command line I can track my applications (jobs): yarn application -list returns always empty.

3) Another information: on application INFO outputs, it shows these following lines, but I can't access it. INFO mapreduce.Job: The url to track the job: http://localhost:8080/ INFO mapreduce.Job: Running job: job_local2009332672_0001

Is it a yarn problem? Should I change another setting file? Thanks!

2
What mapreduce framework did you set? job _local files aren't using YARN. Look at mapreduce.framework.name in mapred-site - OneCricketeer
Thanks, @cricket_007! I don't have this mapred-site file. I've found this property on mapred-default.xml. It was with value 'local', I changed to 'yarn' and restarted Hadoop. But my application list still is empty. Any other idea? - Karina Rebuli
You need to rename the default file to mapred-site - OneCricketeer
Great, it's working!! Thank you @cricket_007 =) - Karina Rebuli
Cool. I'll move that comment to an answer. - OneCricketeer

2 Answers

0
votes

Look at mapreduce.framework.name in mapred-site.xml. In your HADOOP_CONF_DIR

Set its value to yarn.

If you don't have a mapred-site, then copy and rename the mapred-default XML file.

0
votes

Thanks for the answer, I was looking for this feature without success. I did changes on the etc/hosts for nothing The answer is to set mapreduce.framework.name in mapred-site.xmlto yarn as stated by cricket_007. This is setting yarn as the default framework for MapReduce operations