1. 程式人生 > >把mapreduce執行在遠端叢集上遇到的問題

把mapreduce執行在遠端叢集上遇到的問題

 

Exception in thread "main" java.io.IOException: The ownership on the staging directory /tmp/hadoop-yarn/staging/hadoop/.staging is not as expected. It is owned by Administrators. The directory must be owned by the submitter hadoop or by hadoop

這裡可以改一下Administrators為hadoop,如果登出重啟後並不能生效就把tmp/hadoop-yarn/staging/hadoop/.staging整個目錄刪了,當然如果你的並不是Administrator這時候就把你對應的使用者名稱改成hadoop.此處的hadoop就是你的叢集名稱

 

重新執行程式若出現

job.splitmetainfo does not exist 

不必驚慌在你的程式中新增 conf.set("fs.default.name", "hdfs://192.168.199.132:9000");改成自己的ip地址就解決了