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]

Community Articles

Find and share helpful community-sourced technical articles.
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!
Labels (1)
avatar
Super Guru

SYMPTOM: Created a user in Ranger. User is visible in ranger DB but not visible in Ranger UI

ERROR: Logged into mysql DB and executed below command -

SELECT * FROM ranger.x_user where user_name in ('userA');

==> This shows the user exist in x_user table.

SELECT * FROM ranger.x_portal_user where user_name in ('userA');

==> The user is also present in x_portal_user

ROOT CAUSE: Suspected corruption on Ranger DB sometimes.

RESOLUTION: Executing below command resolved the issue

>INSERT INTO x_portal_user_role VALUES(NULL,'2016-09-09 00:00:00','2016-09-09 00:00:00',1,1,(SELECT id FROM x_portal_user WHERE login_id='XXXX'),'ROLE_USER',1); 

Replace XXXX with the login_id of the user ('userA') You can replace 'ROLE_USER' with 'ROLE_SYS_ADMIN' if you want it to be an admin

626 Views
Version history
Last update:
‎12-22-2016 05:15 AM
Updated by:
Contributors