当我使用AvroStorage指定以“/”开头的输出路径作为store命令的一部分,即
STORE A INTO '/root/CustomerData-20160120-1101174'
USING org.apache.pig.piggybank.storage.avro.AvroStorage();
我收到了一个错误:
java.lang.Exception: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/root/CustomerData-20160120-1101174/_temporary/0/_temporary/attempt_local1434837835_0012_m_000000_0/part-m-00000.avro":hdfs:hdfs:drwxr-xr-x
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319)
pig脚本在-x本地模式下执行。当路径没有“/ root”时,一切正常。
STORE A INTO 'CustomerData-20160120-1101174'
USING org.apache.pig.piggybank.storage.avro.AvroStorage();
谢谢
答案 0 :(得分:0)
它需要以file:/// ,, file:/// root / ...
作为前缀