【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配置參數和本地文件位置如下圖所示即可解決:

 

 

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