【Hadoop故障处理】Windows开发hadoop本地模式下 出现[(null) entry in command string: null chmod 0700]

IDEA 中运行 Hadoop2.7.3 map reduce程序 出现错误(null) entry in command string: null chmod 0700

解决方法: 
下载(https://github.com/SweetInk/hadoop-common-2.7.1-bin
将hadoop.dll文件拷贝至c://windows/system32文件夹中

运行代码又出现以下错误:

Exception in thread "main" java.lang.RuntimeException: Error while running command to get file permissions : java.io.IOException: (null) entry in command string: null ls -F D:\mr\wordCount.txt
    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:770)
    at org.apache.hadoop.util.Shell.execCommand(Shell.java:866)
    at org.apache.hadoop.util.Shell.execCommand(Shell.java:849)
    at org.apache.hadoop.fs.FileUtil.execCommand(FileUtil.java:1097)
    at 

问题原因: 
在windows开发hadoop程序其输入路径是需要写具体路径。 
IDEA配置参数和本地文件位置如下图所示即可解决:

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章