sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject incubator-sentry git commit: SENTRY-1114: Wrong classname and incorrect _CMD_JAR var in sentryShell (Bhooshan Mogal, Reviewed by: Hao Hao and Sravya Tirukkovalur)
Date Thu, 10 Mar 2016 07:18:55 GMT
Repository: incubator-sentry
Updated Branches:
  refs/heads/master b095b5b99 -> f5989d28d


SENTRY-1114: Wrong classname and incorrect _CMD_JAR var in sentryShell (Bhooshan Mogal, Reviewed
by: Hao Hao and Sravya Tirukkovalur)

Change-Id: I5ce544ea6d07c99bff07702bb8001a6b9f47e5a2


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/f5989d28
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/f5989d28
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/f5989d28

Branch: refs/heads/master
Commit: f5989d28d297d083f71ca4eaf1f996e82dce2024
Parents: b095b5b
Author: hahao <hao.hao@cloudera.com>
Authored: Wed Mar 9 23:17:17 2016 -0800
Committer: hahao <hao.hao@cloudera.com>
Committed: Wed Mar 9 23:17:17 2016 -0800

----------------------------------------------------------------------
 bin/sentryShell | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/f5989d28/bin/sentryShell
----------------------------------------------------------------------
diff --git a/bin/sentryShell b/bin/sentryShell
index d6e8055..d21a65f 100755
--- a/bin/sentryShell
+++ b/bin/sentryShell
@@ -40,7 +40,7 @@ if [ ! -f ${HADOOP} ]; then
   exit 4;
 fi
 
-export _CMD_JAR=${SENTRY_SHELL_JAR}:sentry-provider-db-*.jar
+export _CMD_JAR=${SENTRY_SHELL_JAR:-sentry-provider-db-*.jar}
 for f in ${SENTRY_HOME}/lib/*.jar; do
   HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:${f}
 done
@@ -68,4 +68,4 @@ while [ $# -gt 0 ]; do    # Until you run out of parameters . . .
   shift
 done
 
-exec $HADOOP jar ${SENTRY_HOME}/lib/${_CMD_JAR} org.apache.sentry.SentryShellHive ${args[@]}
+exec $HADOOP jar ${SENTRY_HOME}/lib/${_CMD_JAR} org.apache.sentry.provider.db.tools.SentryShellHive
${args[@]}


Mime
View raw message