hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miklos Csanady (JIRA)" <j...@apache.org>
Subject [jira] [Work started] (HIVE-14049) Password prompt in Beeline is continuously printed
Date Mon, 26 Sep 2016 08:26:20 GMT

     [ https://issues.apache.org/jira/browse/HIVE-14049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Work on HIVE-14049 started by 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
>            Assignee: Miklos Csanady
>
> 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)

Mime
View raw message