PIG: Exception in thread "main" java.io.IOException: Per
(2013-06-11 04:47:25)
標籤:
pighadooppermissionit |
分類: 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 );
|