window上面的eclipse运行MapReduce操作Linux上Hadoop一直报空指针
来源:4-8 词频统计之本地方式运行
1107156171
2019-03-05
window上面的eclipse运行MapReduce操作Linux上Hadoop一直报空指针,这是必须在window上安装Hadoop吗?缺少的 winutils.exe应该放在什么位置?
Exception in thread “main” java.lang.NullPointerException
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)
at org.apache.hadoop.util.Shell.runCommand(Shell.java:548)
写回答
1回答
-
1) download compiled winutils.exe from
http://social.msdn.microsoft.com/Forums/windowsazure/en-US/28a57efb-082b-424b-8d9e-731b1fe135de/please-read-if-experiencing-job-failures?forum=hdinsight
2) put this file into d:\winutil\bin
3) add in my test: System.setProperty("hadoop.home.dir", "d:\\winutil\\")
after that test runs072019-03-20
相似问题