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]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

SWICHDATABASE privilege missing error in HUE. User can't access to Hive tables.

avatar
Explorer

SWITCHDATABASE privilege missing when trying to run a selectSWITCHDATABASE privilege missing when trying to run a selectPrivileges the user has.Privileges the user has.

Working in Hue, I want this user "user" to access Hive tables.

 

As seen in the images, in the context of a proof of concept. User have privilege to any action on the server. However, when I try to run a simple select * in Hue, I got a SWITCHDATABASE missing privilege error.

1 ACCEPTED SOLUTION

avatar
Explorer

SOLVED

 

 

So I skipped to add the user/group to the unix system...

 

 

groupadd reg_group
useradd -g reg_group user_reg

 

View solution in original post

5 REPLIES 5

avatar
If the user really has a server ALL, then he can do anything. So I beleive, that the users group is not resolved correclty to a "regular_group" and therefore the Query does not pass throught the security check.

avatar
You can check it by SHOW CURRENT ROLES what priviliges you have under this user

avatar
Explorer

image.png

Hello @Tomas79, thanks for your answer. 

 

As seen above, I get the same error.

avatar
Explorer

SOLVED

 

 

So I skipped to add the user/group to the unix system...

 

 

groupadd reg_group
useradd -g reg_group user_reg

 

avatar
Contributor

Where do you get/access to this kind of UI? I'm stuck with the user-group thingy when working with Sentry too.

quangbilly79_0-1684392512571.png