AnsweredAssumed Answered

Not able to run job as any other user apart from 'root' on AWS EC2

Question asked by sourabhsanghi on Feb 28, 2013
Latest reply on Mar 1, 2013 by nabeel
Hi,
I have setup a Mapr cluster on Amazon EC2 and created a user 'user1' and provided all the necessary permissions to the user to run the hadoop jobs. I get the below error
<pre>
Error initializing attempt_201302281837_0004_m_000002_0:
java.io.IOException: Job initialization failed (255). with output: Reading task controller config from /opt/mapr/hadoop/hadoop-0.20.2/conf/taskcontroller.cfg
number of groups = 1
main : command provided 0
main : user is user1
number of groups = 2
java.io.IOException: Could not create FileClient
        at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:237)
        at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:249)
        at com.mapr.fs.MapRFileSystem.getMapRFileStatus(MapRFileSystem.java:671)
        at com.mapr.fs.MapRFileSystem.getFileStatus(MapRFileSystem.java:697)
        at org.apache.hadoop.mapred.JobLocalizer.localizeJobJarFile(JobLocalizer.java:273)
        at org.apache.hadoop.mapred.JobLocalizer.localizeJobFiles(JobLocalizer.java:390)
        at org.apache.hadoop.mapred.JobLocalizer.runSetup(JobLocalizer.java:511)
        at org.apache.hadoop.mapred.JobLocalizer$3.run(JobLocalizer.java:566)
        at org.apache.hadoop.mapred.JobLocalizer$3.run(JobLocalizer.java:563)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1127)
        at org.apache.hadoop.mapred.JobLocalizer.main(JobLocalizer.java:562)

</pre>
I have tried the solutions given in the mapr forums in the below link but still the issue persists

http://answers.mapr.com/questions/1907/cant-open-jobcache-in-tmpmapr-hadoopmapredlocaltasktracker-permission-denied

Can anyone help me here??

Thanks,
Sourabh

Outcomes