FAQ
Repository: hive
Updated Branches:
   refs/heads/master f08a0330b -> ae588db5e


HIVE-6758: Beeline doesn't work with -e option when started in background (Mohit via Xuefu)


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

Branch: refs/heads/master
Commit: ae588db5e999b948dc3fae9171d6bfcb2380560b
Parents: f08a033
Author: Xuefu Zhang <xzhang@cloudera.com>
Authored: Fri Sep 18 15:22:41 2015 -0700
Committer: Xuefu Zhang <xzhang@cloudera.com>
Committed: Fri Sep 18 15:22:41 2015 -0700

----------------------------------------------------------------------
  bin/beeline | 5 +++++
  1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/ae588db5/bin/beeline
----------------------------------------------------------------------
diff --git a/bin/beeline b/bin/beeline
index bceb7b9..2fb05bc 100644
--- a/bin/beeline
+++ b/bin/beeline
@@ -22,4 +22,9 @@ bin=`cd "$bin"; pwd`
  # hive lib instead of hadoop lib.
  export HADOOP_USER_CLASSPATH_FIRST=true

+# If process is backgrounded, don't change terminal settings
+if [[ ! $(ps -o stat= -p $$) =~ + ]]; then
+ export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Djline.terminal=jline.UnsupportedTerminal"
+fi
+
  . "$bin"/hive --service beeline "$@"

Search Discussions

  • Xuefu at Sep 18, 2015 at 10:23 pm
    Repository: hive
    Updated Branches:
       refs/heads/branch-1 103238c47 -> 86eebbdef


    HIVE-6758: Beeline doesn't work with -e option when started in background (Mohit via Xuefu)


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

    Branch: refs/heads/branch-1
    Commit: 86eebbdef3a2b0d5ddd716a226e1b410d41beb34
    Parents: 103238c
    Author: Xuefu Zhang <xzhang@cloudera.com>
    Authored: Fri Sep 18 15:22:41 2015 -0700
    Committer: Xuefu Zhang <xzhang@cloudera.com>
    Committed: Fri Sep 18 15:23:17 2015 -0700

    ----------------------------------------------------------------------
      bin/beeline | 5 +++++
      1 file changed, 5 insertions(+)
    ----------------------------------------------------------------------


    http://git-wip-us.apache.org/repos/asf/hive/blob/86eebbde/bin/beeline
    ----------------------------------------------------------------------
    diff --git a/bin/beeline b/bin/beeline
    index bceb7b9..2fb05bc 100644
    --- a/bin/beeline
    +++ b/bin/beeline
    @@ -22,4 +22,9 @@ bin=`cd "$bin"; pwd`
      # hive lib instead of hadoop lib.
      export HADOOP_USER_CLASSPATH_FIRST=true

    +# If process is backgrounded, don't change terminal settings
    +if [[ ! $(ps -o stat= -p $$) =~ + ]]; then
    + export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Djline.terminal=jline.UnsupportedTerminal"
    +fi
    +
      . "$bin"/hive --service beeline "$@"

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedSep 18, '15 at 10:22p
activeSep 18, '15 at 10:23p
posts2
users1
websitehive.apache.org

1 user in discussion

Xuefu: 2 posts

People

Translate

site design / logo © 2021 Grokbase