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
);
|