diff --git a/bin/hive b/bin/hive index 3b9f3e0..bd6af8c 100755 --- a/bin/hive +++ b/bin/hive @@ -263,7 +263,7 @@ fi HBASE_BIN=${HBASE_BIN:-"$(which hbase)"} # perhaps we've located HBase. If so, include its details on the classpath -if [[ -n $HBASE_BIN ]] ; then +if [[ -n $HBASE_BIN && !("$SERVICE" =~ ^(help|version|orcfiledump|rcfilecat|schemaTool|cleardanglingscratchdir|metastore|beeline)$) ]] ; then # exclude ZK, PB, and Guava (See HIVE-2055) # depends on HBASE-8438 (hbase-0.94.14+, hbase-0.96.1+) for `hbase mapredcp` command for x in $($HBASE_BIN mapredcp 2>> ${STDERR} | tr ':' '\n') ; do