Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
oozie how to change owner from yarn to user
Labels:
Contributor
Created 11-15-2017 09:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
1 REPLY 1
Contributor
Created 11-16-2017 03:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
use
<env-var>HADOOP_USER_NAME=${wf:user()}</env-var>
in the workflow.xml
I found the solution here:
