PIG: Exception in thread "main" java.io.IOException: Per

PIG: Exception in thread "main" java.io.IOException: Per

 (2013-06-11 04:47:25)
標籤: 

pig

 

hadoop

 

permission

 

it

分類: JAVA

新集羣配置點工具,在運行PIG的時候報錯

Exception in thread "main" java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1704)
at java.io.File.createTempFile(File.java:1792)
at org.apache.hadoop.util.RunJar.main(RunJar.java:146)

報錯內容還是很明顯的,沒有權限

具體原因是org.apache.hadoop.util.RunJar.main需要創建臨時文件用以保存JOB信息都數據:

File tmpDir = new File(new Configuration().get("hadoop.tmp.dir"));
ensureDirectory(tmpDir);
 
final FileworkDir = File.createTempFile("hadoop-unjar", "",tmpDir);
if (!workDir.delete()){
  System.err.println("Deletefailed for " +workDir);
  System.exit(-1);

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