Created 11-15-2017 09:16 PM
hello,
I use an oozie shell action to create a file aaaknowledge.txt in /tmp and then copy it to HDFS as per script.sh:
echo "`date -u`" >> /tmp/aaaknowledge.txt
hadoop fs -copyFromLocal /tmp/aaaknowledge.txt hdfs://sandbox.hortonworks.com:8020/user/maria_dev/oozie/log
However the created directory has yarn as owner, thus the user cannot access it.
How can I setup user rights for oozie actions?
Created 11-16-2017 03:21 PM
use
<env-var>HADOOP_USER_NAME=${wf:user()}</env-var>
in the workflow.xml
I found the solution here: