hadoop job -list报错解决方法

来源:互联网 发布:dna计算机 知乎 编辑:程序博客网 时间:2024/06/01 16:18

错误信息

[root@single Desktop]# hadoop job -list
DEPRECATED: Use of this script to execute mapred command is deprecated.
Instead use the mapred command for it.


SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/cloud/hadoop-2.2.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/cloud/hadoop-2.2.0/share/hadoop/common/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
14/08/21 18:18:53 INFO Configuration.deprecation: session.id is deprecated. Instead, use dfs.metrics.session-id
14/08/21 18:18:53 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)



修改mapred-site.xml文件,该配置的原因


<property>

<name>mapreduce.framework.name</name>

<value>yarn</value>

</property>

重启集群可以了

[root@single Desktop]# hadoop job -list
DEPRECATED: Use of this script to execute mapred command is deprecated.
Instead use the mapred command for it.


SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/cloud/hadoop-2.2.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/cloud/hadoop-2.2.0/share/hadoop/common/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
14/08/21 19:16:22 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
Total jobs:0
                  JobId     State    StartTime    UserName      Queue  PriorityUsedContainers RsvdContainersUsedMem RsvdMem NeededMem  AM info


0 0
原创粉丝点击