Hasoop 2.2.0 NPE jobs list

I compiled hasoop 2.2.0 x64 and ran it in a cluster. When I do hadoop job -listor hadoop job -list all, it throws NPE as follows:

14/01/28 17:18:39 INFO Configuration.deprecation: session.id is deprecated. Instead, use dfs.metrics.session-id
14/01/28 17:18:39 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker, sessionId=
Exception in thread "main" java.lang.NullPointerException
    at org.apache.hadoop.mapreduce.tools.CLI.listJobs(CLI.java:504)
    at org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:312)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
    at org.apache.hadoop.mapred.JobClient.main(JobClient.java:1237)

and on hadoop webapp, like jobhistory (I turn on the historyhistory server). it shows that the work was not started and the work did not end, although I did the tasks.

Please help me solve this problem.

+4
source share
1 answer

I came across this when trying to migrate to mapreduce before YARN. It turns out I didn’t have enough directives in the mapred-site.xmlmap reduction instructions for using YARN:

<property>
  <name>mapreduce.framework.name</name>
  <value>yarn</value>
</property>
0
source

Source: https://habr.com/ru/post/1524019/


All Articles