FAQ
Author: brock
Date: Mon Oct 20 19:37:57 2014
New Revision: 1633209

URL: http://svn.apache.org/r1633209
Log:
HIVE-6758 - Beeline doesn't work with -e option when started in background (Mohit Sabharwal via Brock)

Modified:
     hive/trunk/bin/beeline

Modified: hive/trunk/bin/beeline
URL: http://svn.apache.org/viewvc/hive/trunk/bin/beeline?rev=1633209&r1=1633208&r2=1633209&view=diff
==============================================================================
--- hive/trunk/bin/beeline (original)
+++ hive/trunk/bin/beeline Mon Oct 20 19:37:57 2014
@@ -18,4 +18,9 @@
  bin=`dirname "$0"`
  bin=`cd "$bin"; pwd`

+# 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedOct 20, '14 at 7:38p
activeOct 20, '14 at 7:38p
posts1
users1
websitehive.apache.org

1 user in discussion

Brock: 1 post

People

Translate

site design / logo © 2022 Grokbase