Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: The Cloudera Community will undergo maintenance on Saturday, August 17 at 12:00am PDT. See more info here.

Sentry grant on a table

SOLVED Go to solution

Sentry grant on a table

Contributor

I have a employee_database and under employee_database I have tables salary_table and bonus_table. Right now emp_role has full access on employee_database. I would also like to give select access to hr_role on bonus_table. How can I achieve this in sentry?

 

SHOW GRANT ROLE emp_role;

1 hdfs://localns/emp emp_role ROLE * false
2 employee_database emp_role ROLE * false

GRANT SELECT ON TABLE emp_database.bonus_table to role hr_role;

SHOW GRANT ROLE emp_role;

1 hdfs://localns/emp emp_role ROLE * false
2 employee_database emp_role ROLE * false

 

I don't get error when I run the above grant but i don't see the grant in the list.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Sentry grant on a table

Contributor

I had to check grant in hr_role instead of emp_role. This is the solution for this question.

1 REPLY 1
Highlighted

Re: Sentry grant on a table

Contributor

I had to check grant in hr_role instead of emp_role. This is the solution for this question.