运行以下命令成功
hadoop fs -ls /path/
hadoop fs -cat /path/.pig_schema
目录中的所有文件都有一个 -rwxr-xr-x
许可
然而,在 pig
控制台,运行时:
A = LOAD '/path/' USING PigStorage();
B = LIMIT A 5;
DUMP B;
遇到权限错误
2015-08-27 08:47:59,734 [main] ERROR org.apache.pig.tools.grunt.Grunt - You don't have permission to perform the operation. Error from the server: Permission denied
2015-08-27 08:47:59,735 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2017: Internal error creating job configuration.
知道为什么吗?
编辑1:添加错误日志
=======================================================================================================清管器堆栈跟踪
1条答案
按热度按时间aiazj4mn1#
------错误2017:创建作业配置时发生内部错误。
org.apache.pig.impl.logicalayer.frontendexception:错误1066:无法打开org.apache.pig.pigserver.openiterator(pigserver)上别名b的迭代器。java:857)位于org.apache.pig.tools.grunt.gruntparser.processdump(gruntparser。java:746)在org.apache.pig.tools.pigscript.parser.pigscriptparser.parse(pigscriptparser。java:320)在org.apache.pig.tools.grunt.gruntparser.parsestoponerror(gruntparser。java:196)在org.apache.pig.tools.grunt.gruntparser.parsestoponerror(gruntparser。java:171)在org.apache.pig.tools.grunt.grunt.run(grunt。java:69)在org.apache.pig.main.run(main。java:543)在org.apache.pig.main.main(main。java:157)原因:org.apache.pig.pigexception:错误1002:无法将别名b存储在org.apache.pig.pigserver.storeex(pigserver。java:956)在org.apache.pig.pigserver.store(pigserver。java:919)在org.apache.pig.pigserver.openiterator(pigserver。java:832) ... 7其他原因:org.apache.pig.backend.hadoop.executionengine.mapreducelayer.jobcreationexception:error 2017:创建作业配置时出现内部错误。位于org.apache.pig.backend.hadoop.executionengine.mapreducelayer.jobcontrolcompiler.getjob(jobcontrolcompiler。java:874)位于org.apache.pig.backend.hadoop.executionengine.mapreducelayer.jobcontrolcompiler.compile(jobcontrolcompiler。java:297)在org.apache.pig.backend.hadoop.executionengine.mapreducelayer.mapreducelauncher.launchpig(mapreducelauncher。java:177)在org.apache.pig.pigserver.launchplan(pigserver。java:1285)在org.apache.pig.pigserver.executecompiledlogicalplan(pigserver。java:1270)在org.apache.pig.pigserver.storeex(pigserver。java:952) ... 9更多原因:java.io.ioexception:在java.io.unixfilesystem.createfileexclusively(本机方法)在java.io.file.createtempfile(文件)处拒绝权限。java:1879)在java.io.file.createtempfile(文件。java:1923)位于org.apache.pig.backend.hadoop.executionengine.mapreducelayer.jobcontrolcompiler.getjob(jobcontrolcompiler。java:538) ... 14个以上