How to run e2e tests

export HIVE_CONF_DIR=/etc/hive/conf
export HIVE_LIB=/usr/lib/hive
export HADOOP_CONF_DIR=/etc/hadoop/conf
export 'MAVEN_OPTS=-Xmx1536m -Xms512m -XX:MaxPermSize=512m'
 
export HS2_HOST=`hostname`
export NN_HOST=`hostname`
export HS2_PORT=10000
export KEY_TAB_FILE_DIR=/data/keytabs/hive.keytab
export PRINCIPAL=hive/_HOST@REALM
 
cd ${APACHE_SENTRY_ROOT_DIR}/sentry/sentry-tests/sentry-tests-hive

mvn test -e --no-snapshot-updates -DtestFailureIgnore=false \
-P cluster-hadoop-provider-db \
-f pom.xml \
-Dsentry.e2etest.admin.user=hive \
-Dsentry.e2etest.admin.group=hive \
-Dhive.server2.thrift.bind.host=${HS2_HOST} \
-Dhive.server2.thrift.port=${HS2_PORT} \
-Dhive.server2.authentication.kerberos.keytab=${KEY_TAB_FILE_DIR} \
-Dhive.server2.authentication.kerberos.principal=${PRINCIPAL} \
-Dhive.server2.authentication=kerberos

How to run upstream Hive v2 tests ( Unable to render Jira issues macro, execution error. )

-P-hive-authz1,hive-authz2,-datanucleus3,datanucleus4
  • No labels