Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st. We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here. Need help or have questions? Drop us a line at [email protected]
ERROR: Tried creating simple script and ran, but the files are created using yarn user as shown below -
#!/bin/sh
/bin/touch /tmp/test.oozie
The result is ok. the file is created by the user yarn.
-rw-r--r-- 1 yarn hadoop 0 Jun 3 03:04 /tmp/test.oozie
ROOT CAUSE:
User is expecting the oozie job should create files after successful run with the ownership as user who submits the job.
Shell actions are not allowed to run as another user as sudo is blocked. If you want a yarn application to run as someone other than yarn (i.e. the submitter), then you'd want to run in a secured environment so that the containers are started up by the submitting user.
RESOLUTION: Configure kerberos within cluster and re-run the job