ASF subversion and git services commented on IMPALA-9304:

Commit cad156181b29b7897fb2366bd621f2349c090e20 in impala's branch 
refs/heads/master from stiga-huang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=cad1561 ]

IMPALA-9304: Support starting Hive with Ranger in minicluster

Add a new flag -with_ranger in testdata/bin/run-hive-server.sh to start
Hive with Ranger integration. The relative configuration files are
generated in bin/create-test-configuration.sh using a new varient
ranger_auth in hive-site.xml.py. Only Hive3 is supported.

Current limitation:
Can't use different username in Beeline by the -n option. "select
current_user()" keeps returning my username, while "select
logged_in_user()" can return the username given by -n option but it's
not used in authorization.

 - Ran bin/create-test-configuration.sh and verified the generated
   hive-site_ranger_auth.xml contains Ranger configurations.
 - Ran testdata/bin/run-hive-server.sh -with_ranger. Verified column
   masking and row filtering policies took effect in Beeline.
 - Added test in test_ranger.py for this mode.

Change-Id: I01e3a195b00a98388244a922a1a79e65146cec42
Reviewed-on: http://gerrit.cloudera.org:8080/15189
Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>

> Add script to launch Hive with Ranger in minicluster
> ----------------------------------------------------
>                 Key: IMPALA-9304
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9304
>             Project: IMPALA
>          Issue Type: Task
>            Reporter: Quanlong Huang
>            Assignee: Quanlong Huang
>            Priority: Major
> When developing Ranger integrations, I found it useful to play around on Hive 
> with Ranger, which helps to understand the behaviors and underlying 
> implementations. It would be good to add a script to launch Hive using Ranger 
> authorization. 

This message was sent by Atlassian Jira

To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to