You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by sp...@apache.org on 2016/07/11 19:26:55 UTC
hive git commit: HIVE-14151: Use of USE_DEPRECATED_CLI environment
variable does not work (Vihang Karajgaonkar, reviewed by Sergio Pena)
Repository: hive
Updated Branches:
refs/heads/master 9ada10f88 -> c790391cc
HIVE-14151: Use of USE_DEPRECATED_CLI environment variable does not work (Vihang Karajgaonkar, reviewed by Sergio Pena)
Change-Id: I9281d06fcc0cd5aa7c6b6d917fa911072978a8b1
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/c790391c
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/c790391c
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/c790391c
Branch: refs/heads/master
Commit: c790391cce8a7f12d88e6a8d4f61485128ab9269
Parents: 9ada10f
Author: Vihang Karajgaonkar <vi...@cloudera.com>
Authored: Mon Jul 11 14:26:20 2016 -0500
Committer: Sergio Pena <se...@cloudera.com>
Committed: Mon Jul 11 14:26:20 2016 -0500
----------------------------------------------------------------------
bin/ext/cli.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/c790391c/bin/ext/cli.sh
----------------------------------------------------------------------
diff --git a/bin/ext/cli.sh b/bin/ext/cli.sh
index 847cf0d..b81648d 100644
--- a/bin/ext/cli.sh
+++ b/bin/ext/cli.sh
@@ -17,7 +17,8 @@ THISSERVICE=cli
export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} "
# Set old CLI as the default client
-if [ -n '$USE_DEPRECATED_CLI' ]; then
+# if USE_DEPRECATED_CLI is not set or is not equal to false use old CLI
+if [ -z "$USE_DEPRECATED_CLI" ] || [ "$USE_DEPRECATED_CLI" != "false" ]; then
USE_DEPRECATED_CLI="true"
fi