Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 59CD4200B7E for ; Mon, 22 Aug 2016 15:35:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 58B60160A91; Mon, 22 Aug 2016 13:35:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A2893160AB3 for ; Mon, 22 Aug 2016 15:35:21 +0200 (CEST) Received: (qmail 83715 invoked by uid 500); 22 Aug 2016 13:35:20 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 83699 invoked by uid 99); 22 Aug 2016 13:35:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2016 13:35:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A10452C0151 for ; Mon, 22 Aug 2016 13:35:20 +0000 (UTC) Date: Mon, 22 Aug 2016 13:35:20 +0000 (UTC) From: "Miklos Csanady (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-14525) beeline still writing log data to stdout as of version 2.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 22 Aug 2016 13:35:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430757#comment-15430757 ] Miklos Csanady commented on HIVE-14525: --------------------------------------- The ConsoleReader class should not echo back to stdout when consuming a line with readLine method. If ! isSlilent we echo it back with .info() method with prompt. Please review my patch. > beeline still writing log data to stdout as of version 2.1.0 > ------------------------------------------------------------ > > Key: HIVE-14525 > URL: https://issues.apache.org/jira/browse/HIVE-14525 > Project: Hive > Issue Type: Bug > Components: Beeline > Affects Versions: 2.1.0 > Reporter: stephen sprague > Assignee: Miklos Csanady > Attachments: HIVE-14525.patch > > > simple test. note that i'm looking to get a tsv file back. > {code} > $ beeline -u dwrdevnn1 --showHeader=false --outputformat=tsv2 <stdout 2>stderr > > select count(*) > > from default.dual; > > SQL > {code} > instead i get this in stdout: > {code} > $ cat stdout > 0: jdbc:hive2://dwrdevnn1.sv2.trulia.com:1000> select count(*) > . . . . . . . . . . . . . . . . . . . . . . .> from default.dual; > 0 > 0: jdbc:hive2://dwrdevnn1.sv2.trulia.com:1000> > {code} > i should only get one row which is the *result* of the query (which is 0) - not the ovthe loggy kind of lines you see above. that stuff goes to stderr my friends. > also i refer to this ticket b/c the last comment suggested so - its close but not exactly the same. > https://issues.apache.org/jira/browse/HIVE-14183 -- This message was sent by Atlassian JIRA (v6.3.4#6332)