I am trying to run an Oozie Workflow Shell Action from HUE. I had some HDFS permissions which I could fix easily by adding properties to Oozie xml. I am stuck 6 hours trying to get around a local filesystem permission issue. Using HDP 2.0.6 installed with Ambari + installed Hue as described in documentation. When I submit workflow as hue (member of hadoop group)user with only a Shell Action in it I get the below error log:
ACTION[0000010-140526124040148-oozie-oozi-W@ChargingVariables] Launcher exception: Cannot run program "charging_related_calculations" (in directory "/space/hadoop/yarn/local/usercache/hue/appcache/application_1402668961478_0005/container_1402668961478_0005_01_000002"): error=13, Permission denied
java.io.IOException: Cannot run program "charging_related_calculations" (in directory "/space/hadoop/yarn/local/usercache/hue/appcache/application_1402668961478_0005/container_1402668961478_0005_01_000002"): error=13, Permission denied
everytime after I submit the job the directory /space/hadoop/yarn/local/usercache/hue/appcache permissions are automatically changed to 710 and the owner of the directory is yarn:hadoop. So hadoop group has only execution right on the appcache directory created. I am sure about this because I watched all three nodes and saw that randomly shell script is being copied under the above directory.
I am running Oozie Worklfow as hue user and hue is member of hadoop linux group. I obeserved all the local folder and files being copied to temp appcache. I even have a copy of folders which I instantly cp -R d when the tmp folders were created, and I can share them. I also executed and got the below weird error Any Idea?
2014-06-13 22:13:23,106 INFO [main] org.apache.hadoop.ipc.Client: Retrying connect to server: tex655.tnhdpdemo/10.35.36.55:42020. Already tried 49 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=50, sleepTime=1 SECONDS)
2014-06-13 22:13:23,110 WARN [main] org.apache.hadoop.mapred.YarnChild: Exception running child : java.net.ConnectException: Call From tex655.tnhdpdemo/10.35.36.55 to tex655.tnhdpdemo:42020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)