Note that there are some explanatory texts on larger screens.

plurals
  1. POApache Pig permissions issue
    primarykey
    data
    text
    <p>I'm attempting to get Apache Pig up and running on my Hadoop cluster, and am encountering a permissions problem. Pig itself is launching and connecting to the cluster just fine- from within the Pig shell, I can <code>ls</code> through and around my HDFS directories. However, when I try and actually load data and run Pig commands, I run into permissions-related errors:</p> <pre><code>grunt&gt; A = load 'all_annotated.txt' USING PigStorage() AS (id:long, text:chararray, lang:chararray); grunt&gt; DUMP A; 2011-08-24 18:11:40,961 [main] ERROR org.apache.pig.tools.grunt.Grunt - You don't have permission to perform the operation. Error from the server: org.apache.hadoop.security.AccessControlException: Permission denied: user=steven, access=WRITE, inode="":hadoop:supergroup:r-xr-xr-x 2011-08-24 18:11:40,977 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1066: Unable to open iterator for alias A Details at logfile: /Users/steven/Desktop/Hacking/hadoop/pig/pig-0.9.0/pig_1314230681326.log grunt&gt; </code></pre> <p>In this case, <code>all_annotated.txt</code> is a file in my HDFS home directory that I created, and most definitely have permissions to; the same problem occurs no matter what file I try to <code>load</code>. However, I don't think that's the problem, as the error itself indicates Pig is trying to <em>write</em> somewhere. Googling around, I found a few mailing list posts suggesting that certain Pig Latin statements (<code>order</code>, etc.) need write access to a temporary directory on the HDFS file system whose location is controlled by the <code>hadoop.tmp.dir</code> property in hdfsd-site.xml. I don't <em>think</em> <code>load</code> falls into that category, but just to be sure, I changed <code>hadoop.tmp.dir</code> to point to a directory within my HDFS home directory, and the problem persisted.</p> <p>So, anybody out there have any ideas as to what might be going on?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload