- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
permission denied while creating table in hive
- Labels:
-
Apache Hadoop
-
Apache Hive
Created ‎11-07-2017 11:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am creating a table through script , my script is placed at /home/yarn and i am executing the script through yarn user, but i am getting permission error :
user= yarn access= write permission denied
Created ‎11-07-2017 11:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please share the complete error that you are getting? Also little detail about what your script is doing?
It might be the HDFS directory where the user "yarn" is trying to write and does not have write permission. If that is the case then you might want to give write permission to the "yarn" user to that HDFS directory.
# su - hdfs -c "hdfs dfs -chmod 777 /PATH/WHERE/YARN/USER/IS/WRITING (OR) # su - hdfs -c "hdfs dfs -chown -R yarn:hadoop /PATH/WHERE/YARN/USER/IS/WRITING
.
Created ‎11-07-2017 11:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please share the complete error that you are getting? Also little detail about what your script is doing?
It might be the HDFS directory where the user "yarn" is trying to write and does not have write permission. If that is the case then you might want to give write permission to the "yarn" user to that HDFS directory.
# su - hdfs -c "hdfs dfs -chmod 777 /PATH/WHERE/YARN/USER/IS/WRITING (OR) # su - hdfs -c "hdfs dfs -chown -R yarn:hadoop /PATH/WHERE/YARN/USER/IS/WRITING
.
