Files
impala/testdata/bin/run-sentry-service.sh
Lenni Kuff 61cbdd4f49 [CDH5] Add Sentry Service to local test environment
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>
2014-05-14 12:02:02 -07:00

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}" &