Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E7F517FC7 for ; Mon, 27 Oct 2014 04:38:34 +0000 (UTC) Received: (qmail 75090 invoked by uid 500); 27 Oct 2014 04:38:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 75021 invoked by uid 500); 27 Oct 2014 04:38:33 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 75007 invoked by uid 500); 27 Oct 2014 04:38:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 75004 invoked by uid 99); 27 Oct 2014 04:38:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2014 04:38:33 +0000 Date: Mon, 27 Oct 2014 04:38:33 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-6758) Beeline doesn't work with -e option when started in background MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-6758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14184819#comment-14184819 ] Thejas M Nair commented on HIVE-6758: ------------------------------------- With this change, beeline does not work with the arrow keys. (scroll up/down, right/left). The shell condition in the patch does not identify foreground correctly, and as a result it always sets this env variable. I tried the following on bash in mac and linux. {noformat} $ cat /tmp/t.sh #!/usr/bin/env bash if [[ ! $(ps -o stat= -p $$) =~ + ]]; then echo "background" export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Djline.terminal=jline.UnsupportedTerminal" fi $ /tmp/t.sh background {noformat} The shell command pasted by Brock works correctly > Beeline doesn't work with -e option when started in background > -------------------------------------------------------------- > > Key: HIVE-6758 > URL: https://issues.apache.org/jira/browse/HIVE-6758 > Project: Hive > Issue Type: Improvement > Components: CLI > Affects Versions: 0.11.0 > Reporter: Johndee Burks > Assignee: Mohit Sabharwal > Labels: TODOC15 > Fix For: 0.15.0 > > Attachments: HIVE-6758.patch > > > In hive CLI you could easily integrate its use into a script and back ground the process like this: > hive -e "some query" & > Beeline does not run when you do the same even with the -f switch. -- This message was sent by Atlassian JIRA (v6.3.4#6332)