hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sp...@apache.org
Subject hive git commit: HIVE-14151: Use of USE_DEPRECATED_CLI environment variable does not work (Vihang Karajgaonkar, reviewed by Sergio Pena)
Date Mon, 11 Jul 2016 19:26:55 GMT
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 <vihang@cloudera.com>
Authored: Mon Jul 11 14:26:20 2016 -0500
Committer: Sergio Pena <sergio.pena@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
 


Mime
View raw message