mirror of
https://github.com/apache/impala.git
synced 2026-01-03 15:00:52 -05:00
Adds the ability to start/stop the Sentry Service to our local test environment and load the sentry-site.xml configs. Since the existing Sentry startup scripts don't work I wrote a simple wrapper to handle service startup. Change-Id: I1b77a2e50e51e6e6eae58cfed4d5d7c403dbc0b4 Reviewed-on: http://gerrit.ent.cloudera.com:8080/2540 Tested-by: jenkins Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
13 lines
428 B
Bash
Executable File
13 lines
428 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
|
|
set -u
|
|
. ${IMPALA_HOME}/bin/set-classpath.sh
|
|
|
|
# First kill any running instances of the service.
|
|
$IMPALA_HOME/testdata/bin/kill-sentry-service.sh
|
|
|
|
# Start the service
|
|
SENTRY_SERVICE_CONFIG=$IMPALA_HOME/fe/src/test/resources/sentry-site.xml
|
|
java -cp $CLASSPATH com.cloudera.impala.testutil.SentryServiceWrapper \
|
|
--config_file "${SENTRY_SERVICE_CONFIG}" &
|