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 E4AAD200BB9 for ; Mon, 7 Nov 2016 15:22:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E373A160B11; Mon, 7 Nov 2016 14:22:59 +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 40C2A160AEB for ; Mon, 7 Nov 2016 15:22:59 +0100 (CET) Received: (qmail 73063 invoked by uid 500); 7 Nov 2016 14:22:58 -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 73030 invoked by uid 99); 7 Nov 2016 14:22:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2016 14:22:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5EB0F2C0032 for ; Mon, 7 Nov 2016 14:22:58 +0000 (UTC) Date: Mon, 7 Nov 2016 14:22:58 +0000 (UTC) From: "Miklos Csanady (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HIVE-14049) Password prompt in Beeline is continuously printed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 07 Nov 2016 14:23:00 -0000 [ https://issues.apache.org/jira/browse/HIVE-14049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Miklos Csanady reassigned HIVE-14049: ------------------------------------- Assignee: (was: Miklos Csanady) > Password prompt in Beeline is continuously printed > -------------------------------------------------- > > Key: HIVE-14049 > URL: https://issues.apache.org/jira/browse/HIVE-14049 > Project: Hive > Issue Type: Bug > Components: Beeline > Affects Versions: 2.0.1 > Reporter: Abdullah Yousufi > > I'm experiencing this issue with a Mac, which was not occurring until recently. > {code} > Beeline version 2.2.0-SNAPSHOT by Apache Hive > beeline> !connect jdbc:hive2://localhost:10000 > Connecting to jdbc:hive2://localhost:10000 > Enter username for jdbc:hive2://localhost:10000: hive > Enter password for jdbc:hive2://localhost:10000: > Enter password for jdbc:hive2://localhost:10000: > Enter password for jdbc:hive2://localhost:10000: > ... > {code} > The 'Enter password for jdbc:hive2://localhost:10000:' line continues to print until enter is hit. From looking at the code in Commands.java (lines 1413-1420), it's not quite clear why this happens on the second call to readLine()) : > {code} > if (username == null) { > username = beeLine.getConsoleReader().readLine("Enter username for " + url + ": "); > } > props.setProperty("user", username); > if (password == null) { > password = beeLine.getConsoleReader().readLine("Enter password for " + url + ": ", > new Character('*')); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)