执行hadoop jar命令时报Not a valid JAR的原因分析和解决方案
原因是没有在hadoop-2.7.2目录下运行 hadoop jar命令
[jxw@hadoop001 output]$ hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.2.jar wordcount wcinput wcoutput
Not a valid JAR: /opt/module/hadoop-2.7.2/output/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.2.jar
#正常运行
[jxw@hadoop001 hadoop-2.7.2]$ hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.2.jar wordcount wcinput wcoutput