FAQ
I am trying to run HBase importTSV hadoop job remotely to load data into
HBase from a TSV file. I am using the following code.

Configuration config = new Configuration();
Iterator iter = config.iterator();
while(iter.hasNext())
{
Object obj = iter.next();
System.out.println(obj);
}

Job job = new Job(config);
job.setJarByClass(ImportTsv.class);
job.setJobName("ImportTsv");
job.getConfiguration().set("user", "hadoop");
job.waitForCompletion(true);

I am getting this error

ERROR security.UserGroupInformation: PriviledgedActionException as:E317376
cause:org.apache.hadoop.security.AccessControlException:
org.apache.hadoop.security.AccessControlException: Permission denied:
user=E317376, access=WRITE, inode="staging":hadoop:supergroup:rwxr-xr-x

I dont know how user name E317376 is being set. This is my windows machine
user from where I am trying to run this job in a remote cluster. My haddop
user account in linux machine is "hadoop"

when i run this in linux machine which is part of Hadoop cluster under
hadoop user account in terminal, everything works well. But I want to
programatically run this job in a java web application. Am I doing anything
wrong. Please help...

--
Regards,
Anand

--

Search Discussions

  • Sambit Tripathy at Jul 19, 2012 at 3:32 pm
    I think it has to be the same JVM always. Programatically, the Job class is
    loaded by the Windows classloader whereas the TSV file resides on the HDFS
    On Wed, Jul 18, 2012 at 9:23 PM, AnandaVelMurugan Chandra Mohan wrote:

    I am trying to run HBase importTSV hadoop job remotely to load data into
    HBase from a TSV file. I am using the following code.

    Configuration config = new Configuration();
    Iterator iter = config.iterator();
    while(iter.hasNext())
    {
    Object obj = iter.next();
    System.out.println(obj);
    }

    Job job = new Job(config);
    job.setJarByClass(ImportTsv.class);
    job.setJobName("ImportTsv");
    job.getConfiguration().set("user", "hadoop");
    job.waitForCompletion(true);

    I am getting this error

    ERROR security.UserGroupInformation: PriviledgedActionException as:E317376
    cause:org.apache.hadoop.security.AccessControlException:
    org.apache.hadoop.security.AccessControlException: Permission denied:
    user=E317376, access=WRITE, inode="staging":hadoop:supergroup:rwxr-xr-x

    I dont know how user name E317376 is being set. This is my windows machine
    user from where I am trying to run this job in a remote cluster. My haddop
    user account in linux machine is "hadoop"

    when i run this in linux machine which is part of Hadoop cluster under
    hadoop user account in terminal, everything works well. But I want to
    programatically run this job in a java web application. Am I doing anything
    wrong. Please help...

    --
    Regards,
    Anand

    --


    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcdh-user @
categorieshadoop
postedJul 18, '12 at 3:54p
activeJul 19, '12 at 3:32p
posts2
users2
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase