Fang-Yu Rao has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/21160


Change subject: IMPALA-12921: [WIP] Support locally built Ranger
......................................................................

IMPALA-12921: [WIP] Support locally built Ranger

This patch adds the support for locally built Ranger in Impala's
minicluster. Suppose that we have already built Ranger locally under the
folder $RANGER_SRC_DIR, and that the produced tar files are under
$RANGER_SRC_DIR/target. It suffices to execute the following to start
the locally built Ranger server.

1. export RANGER_VERSION_OVERRIDE=\
   $(mvn -f $RANGER_SRC_DIR/pom.xml -q help:evaluate \
   -Dexpression=project.version -DforceStdout)

2. export RANGER_HOME_OVERRIDE=$RANGER_SRC_DIR/target/\
   ranger-${RANGER_VERSION_OVERRIDE}-admin

3. source $IMPALA_HOME/bin/impala-config.sh

4. tar zxv $RANGER_SRC_DIR/target/\
   ranger-${IMPALA_RANGER_VERSION}-admin.tar.gz

5. $IMPALA_HOME/bin/create-test-configuration.sh

6. $IMPALA_HOME/bin/create-test-configuration.sh \
   -create_ranger_policy_db

7. $IMPALA_HOME/testdata/bin/run-ranger-server.sh

8. $IMPALA_HOME/testdata/bin/setup-ranger.sh

To-do:
 - Currently the GRANT/REVOKE APIs do not work with Apache Impala.
   We should figure out why 'userName' in
   ServiceREST#ensureAdminAccess() is null.

Change-Id: I268d6d4d6e371da7497aac8d12f78178d57c6f27
---
M bin/impala-config.sh
M testdata/bin/setup-ranger.sh
R testdata/cluster/ranger/setup/all_database_policy_revised.json.template
M testdata/cluster/ranger/setup/impala_user_non_owner.json.template
M testdata/cluster/ranger/setup/impala_user_owner.json.template
5 files changed, 25 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/60/21160/1
--
To view, visit http://gerrit.cloudera.org:8080/21160
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I268d6d4d6e371da7497aac8d12f78178d57c6f27
Gerrit-Change-Number: 21160
Gerrit-PatchSet: 1
Gerrit-Owner: Fang-Yu Rao <[email protected]>

Reply via email to