Hello Lune,

Ranger Hive Plugin doesn't support DFS command via beeline and there is no
workaround as such now.

Is there a specific use case that is done here to execute DFS command via
beeline?

Thanks,
Ramesh

On Thu, Aug 6, 2020 at 8:30 AM Lune Silver <lunescar.ran...@gmail.com>
wrote:

> Hello o/
>
> We recently upgraded from HDP 2.6.2 to HDP 3.1.4 and we have Ranger
> installed and enabled for hive.
> So we have Ranger 1.2.0.
>
> When we perform a beeline command with a dfs command, we got the following
> error :
> ###
> Error: Error while processing statement: Permission denied: user [myuser]
> does not have privilege for [DFS] command (state=,code=1)
> ###
>
> *Example :*
> 0: jdbc:hive2://myserver> dfs -ls /;
> Error: Error while processing statement: Permission denied: user [myuser]
> does not have privilege for [DFS] command (state=,code=1)
> 0: jdbc:hive2://myserver>
>
> I checked in Ranger documentation here (
> https://cwiki.apache.org/confluence/display/RANGER/Hive+Commands+to+Ranger+Permission+Mapping
> ).
> It is written that DFS is not supported in Ranger but the documentation
> concerns the version 0.6 of Ranger.
>
>
>    1. In Ranger 1.2, is the DFS command still not supported in Ranger ?
>    2. Is there a workaround to allow users to perform dfs commands with
>    beeline with ranger enabled in ranger 1.2 ?
>
>
> Best regards.
>
> Lune
>

Reply via email to