[ 
https://issues.apache.org/jira/browse/HIVE-14049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937009#comment-15937009
 ] 

Vihang Karajgaonkar commented on HIVE-14049:
--------------------------------------------

Closing this as not reproducible based on the comments above. Also, haven't 
seen this issue in a while.

> 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.15#6346)

Reply via email to