FAQ
Repository: hive
Updated Branches:
   refs/heads/beeline-cli 804f20a4d -> edbd8db0c


HIVE-11352: Avoid the double connections with 'e' option[beeline-cli branch](Ferdinand Xu via Xuefu Zhang)


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

Branch: refs/heads/beeline-cli
Commit: edbd8db0cdda22b8ecbd8bf723c86f2f38fd3bae
Parents: 804f20a
Author: Ferdinand Xu <cheng.a.xu@intel.com>
Authored: Sun Jul 26 22:32:59 2015 -0400
Committer: Ferdinand Xu <cheng.a.xu@intel.com>
Committed: Sun Jul 26 22:32:59 2015 -0400

----------------------------------------------------------------------
  beeline/src/java/org/apache/hive/beeline/BeeLine.java | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/edbd8db0/beeline/src/java/org/apache/hive/beeline/BeeLine.java
----------------------------------------------------------------------
diff --git a/beeline/src/java/org/apache/hive/beeline/BeeLine.java b/beeline/src/java/org/apache/hive/beeline/BeeLine.java
index c47b9fe..d4beefc 100644
--- a/beeline/src/java/org/apache/hive/beeline/BeeLine.java
+++ b/beeline/src/java/org/apache/hive/beeline/BeeLine.java
@@ -827,10 +827,10 @@ public class BeeLine implements Closeable {
          }
        } else {
          int code = initArgsFromCliVars(args);
- defaultConnect(false);
- if (code != 0){
+ if (code != 0 || exit) {
            return code;
          }
+ defaultConnect(false);
          getOpts().updateBeeLineOptsFromConf();
          getOpts().setShowHeader(false);
          getOpts().setOutputFormat("dsv");

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedJul 27, '15 at 2:34a
activeJul 27, '15 at 2:34a
posts1
users1
websitehive.apache.org

1 user in discussion

Xuf: 1 post

People

Translate

site design / logo © 2021 Grokbase