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]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Strange error on Hive

avatar
Contributor

Hello guys!

 

I'm trying to run the following commands in Hive:

use dataengsandbox;
hive.mapred.supports.subdirectories=true;
insert overwrite directory '/tmp/hmb/test' select max(id) from nodename;

 

If I remove the text marked in orange it works without issues, but I want my output to be written into a HDFS directory.

 

Here is the error that I've received:

Error while compiling statement: FAILED: SemanticException No valid privileges User lrm0613 does not have privileges for QUERY The required privileges: Server=server1->URI=hdfs://nameservice1/tmp/hmb/test->action=*;

1 ACCEPTED SOLUTION

avatar
Master Collaborator

@Heri 

 

There seems to be missing sentry privileges on the hdfs URI

Please refer below document to add the privileges.

https://docs.cloudera.com/documentation/enterprise/latest/topics/sg_hive_sql.html#grant_privilege_on...

 

Hope this helps,

Paras

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

View solution in original post

1 REPLY 1

avatar
Master Collaborator

@Heri 

 

There seems to be missing sentry privileges on the hdfs URI

Please refer below document to add the privileges.

https://docs.cloudera.com/documentation/enterprise/latest/topics/sg_hive_sql.html#grant_privilege_on...

 

Hope this helps,

Paras

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.