我在Windows 7下的cygwin上設置了hadoop 1.1.1。dfs組件開始正常(start-dfs.sh或start-all.sh兩者),所以jobtracker(啓動mapred.sh),但tasktracker無法啓動並關閉與taskTracker的路徑上的權限相關的錯誤(無法設置0755)。我看到在Problem starting tasktracker in hadoop under windows上報告過類似的問題,但沒有找到任何解決方案或指導如何解決它。也嘗試了一些網站的解決方案,但都是徒勞的。由於權限失敗,無法在cygwin上啓動tasktracker
這裏的日誌輸出
2013-01-02 15:51:31,836 INFO org.apache.hadoop.mapred.TaskTracker: Starting tasktracker with owner as 120173
2013-01-02 15:51:31,836 INFO org.apache.hadoop.mapred.TaskTracker: Good mapred local directories are: /tmp/hadoop-120173/mapred/local
2013-01-02 15:51:31,852 ERROR org.apache.hadoop.mapred.TaskTracker: Can not start task tracker because java.io.IOException: Failed to set permissions of path: \tmp\hadoop-120173\mapred\local\taskTracker to 0755
at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:689)
at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:670)
at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:509)
at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:344)
at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:189)
at org.apache.hadoop.mapred.TaskTracker.initialize(TaskTracker.java:810)
at org.apache.hadoop.mapred.TaskTracker.<init>(TaskTracker.java:1557)
at org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:3893)
2013-01-02 15:51:31,852 INFO org.apache.hadoop.mapred.TaskTracker: SHUTDOWN_MSG:
我甚至嘗試手動設置這個目錄的權限,然後運行的TaskTracker但它仍然失敗。
說明Dinkar,難道ü找到了這個問題,我也面臨着同樣的任何解決方案? – Aashu