You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

When starting an Impala minicluster on a local machine using '$IMPALA_HOME/bin/start-impala-cluster.py', by default there is no authorization service, e.g., Sentry or Ranger, enabled on this cluster. We could enable the Ranger service on an Impala minicluster by the following steps.

  1. Execute '$IMPALA_HOME/testdata/bin/kill-all.sh'
  2. Execute '$IMPALA_HOME/buildall.sh -noclean -notests -ninja'
  3. Execute '$IMPALA_HOME/bin/create-test-configuration.sh -create_ranger_policy_db'
  4. Execute '$IMPALA_HOME/testdata/bin/run-all.sh'
  5. Execute '$IMPALA_HOME/testdata/bin/create-load-data.sh'
  6. Execute the following command. We note that the arguments passed into 'start-impala-cluster.py' could also be found at '$IMPALA_HOME/'

/bin/start-impala-cluster.py \
--cluster_size=3 \
--num_coordinators=3 \
--log_dir=/tmp/ \
--log_level=1 \
'--state_store_args=--statestore_update_frequency_ms=50 --statestore_priority_update_frequency_ms=50 --statestore_heartbeat_frequency_ms=50' \
'--impalad_args=--server-name=server1 --ranger_service_type=hive --ranger_app_id=impala --authorization_provider=ranger' \
'--catalogd_args=--server-name=server1 --ranger_service_type=hive --ranger_app_id=impala --authorization_provider=ranger'

Once the minicluster has been started, we could log into the Impala shell as an administrator with username 'admin' by executing '$IMPALA_HOME/bin/impala-shell -u admin'. The account of 'admin'

  • No labels