AnsweredAssumed Answered

Hadoop tests fail when running as "normal user" (not root)

Question asked by marek on May 11, 2012
Latest reply on May 11, 2012 by marek

Attempts to try to start/run "standard hadoop tests" (hadoop-\*test\*.jar or hadoop-\*-examples.jar) fail with "" error when running it as a normal (non-root) user. 

I guess the problem is NOT related to ACL/unix permissions for files/folders, since the failure occurs also when NOT specifying any input/output data files/folders; just "starting" the example code will fail...

For example, this example (running as user "marek") fails: 
[marek@mouse ~]$ hadoop jar $HADOOP_INSTALL/hadoop-*-examples.jar 
Exception in thread "main" Permission denied 
        at Method) 
        at org.apache.hadoop.util.RunJar.main(

Same example started as user "root" is ok: 
[root@mouse ~]# hadoop jar $HADOOP_INSTALL/hadoop-*-examples.jar 
An example program must be given as the first argument. 
Valid program names are: 

I believe this problem may be related to MAPREDUCE-3716 bug ( - at least the failure happens when creating temp file ( 

a) Can anybody confirm this problem (or is it "just me")?  I hope somebody had tried to run stuff as non-root user? :) 
b) If indeed this problem is related to MAPREDUCE-3716 bug, it is supposed to be fixed in hadoop 0.32.1; how should I deal with this (do I have to wait for some future MAPR release, or is there "simple" way for me to "fix it myself"?) 

Any advice? Thanks,