Reputation: 105
I've setup Hadoop in my laptop, and when I submit a job on Hadoop (though MapReduce and Tez), the status always ACCEPTED, but the progress always stuck at 0% and description wrote something like "waiting for AM container to be allocated".
When I check the node through YARN UI(localhost:8088), it shows that the active node is 0
But from HDFS UI(localhost:50070), it shows that there are one live node.
Is that the main reason that cause the job stuck since there are no available node? If that's the case, what should I do?
Upvotes: 1
Views: 2650
Reputation: 61
First thing you should do is check if NodeManager is up and running. If not, then there'll be no active node showing up in Resourcemanager UI.
So, in terminal, run:
jps
If you don't see NodeManager listed in the result, then run:
yarn --daemon start nodenamager
Upvotes: 0
Reputation: 5967
In your YARN UI, it shows you have zero vcores and zero memory so there is no way for any job to ever run since you lack computing resources. The datanode is only for storage (HDFS in this case) and does not matter as far as why your application is stuck.
To fix your problem, you need to update your yarn-site.xml and provide settings for the memory and vcore properties described in the following:
http://blog.cloudera.com/blog/2015/10/untangling-apache-hadoop-yarn-part-2/
You might consider using a Cloudera QuickStart VM or Hortonworks Sandbox (at least as a reference for configuration values for the yarn-site.xml).
https://www.cloudera.com/downloads/quickstart_vms/5-10.html https://hortonworks.com/products/sandbox/
Upvotes: 1