Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to run [DFS] command in beeline

SOLVED Go to solution

Unable to run [DFS] command in beeline

Expert Contributor

Hi,

In the kerberized cluster, after enabling Ranger Hive plug-in in HDP 2.6.5, not able to run dfs commands in beeline.

jdbc:hive2://test.xyz.com:10000> dfs -ls /;

Error: Error while processing statement: Permission denied: user [user1] does not have privilege for [DFS] command (state=,code=1)

Please help on this.

Thank you.



1 ACCEPTED SOLUTION

Accepted Solutions

Re: Unable to run [DFS] command in beeline

Super Guru

@Sampath Kumar

As you have enabled Ranger authorization then DFS commands are restricted in Hive when authorization is enabled.

2 REPLIES 2

Re: Unable to run [DFS] command in beeline

Super Guru

@Sampath Kumar

As you have enabled Ranger authorization then DFS commands are restricted in Hive when authorization is enabled.

Highlighted

Re: Unable to run [DFS] command in beeline

Expert Contributor

Hi @Shu - Thanks for your response. Is there any way where we can enable the DFS commands where Ranger authorization is enabled?

As of now, dfs commands are working in hive shell but not in beeline.

Thank you.