Repository: sentry Updated Branches: refs/heads/sentry-ha-redesign 48ec01dd7 -> afdfd86b0
SENTRY-1388: Make HiveConf and Hive client jars available to Sentry deamon (Vamsee Yarlagadda, Reviewed by: Alexander Kolbasov, Hao Hao) Project: http://git-wip-us.apache.org/repos/asf/sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/afdfd86b Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/afdfd86b Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/afdfd86b Branch: refs/heads/sentry-ha-redesign Commit: afdfd86b0ed9756a10ace04ce7439429b1153e32 Parents: 48ec01d Author: Vamsee Yarlagadda <vam...@cloudera.com> Authored: Sat Mar 4 03:48:17 2017 +0530 Committer: Vamsee Yarlagadda <vam...@cloudera.com> Committed: Tue Mar 7 06:03:08 2017 +0530 ---------------------------------------------------------------------- bin/sentry | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sentry/blob/afdfd86b/bin/sentry ---------------------------------------------------------------------- diff --git a/bin/sentry b/bin/sentry index 93809ea..54e545a 100755 --- a/bin/sentry +++ b/bin/sentry @@ -75,6 +75,9 @@ then for f in ${SENTRY_HOME}/lib/plugins/*.jar; do HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:${f} done + # Add Hive client configs to the classpath of Sentry + HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:${HIVE_CONF_DIR} + exec $HADOOP jar ${SENTRY_HOME}/lib/${_CMD_JAR} org.apache.sentry.SentryMain ${args[@]} else exec ${SENTRY_HOME}/bin/config_tool ${args[@]}