You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ferdinand Xu (JIRA)" <ji...@apache.org> on 2016/08/24 07:28:20 UTC

[jira] [Comment Edited] (HIVE-13589) beeline - support prompt for password with '-u' option

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

Ferdinand Xu edited comment on HIVE-13589 at 8/24/16 7:27 AM:
--------------------------------------------------------------

[~vihangk1], I take a look at the BeeLine code. Now "- p" has been associated with a password. If we make it optional, it will parse the string next to "- p" to see whether it exists a password. In this way, it's possible to treat "--XXXX" as a password since -XXXX doesn't exist in Beeline options. One way I can think of is that we could add a new option which has no password. And prompt user to enter the password. Any thoughputs?


was (Author: ferd):
[~vihangk1], I take a look at the BeeLine code. Now -p has been associated with a password. If we make it optional, it will parse the string next to "-p" to see whether it exists a password. In this way, it's possible to treat "--XXXX" as a password since -XXXX doesn't exist in Beeline options. One way I can think of is that we could add a new option which has no password. And prompt user to enter the password. Any thoughputs?

> beeline - support prompt for password with '-u' option
> ------------------------------------------------------
>
>                 Key: HIVE-13589
>                 URL: https://issues.apache.org/jira/browse/HIVE-13589
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>            Reporter: Thejas M Nair
>            Assignee: Ke Jia
>         Attachments: HIVE-13589.1.patch, HIVE-13589.2.patch, HIVE-13589.3.patch
>
>
> Specifying connection string using commandline options in beeline is convenient, as it gets saved in shell command history, and it is easy to retrieve it from there.
> However, specifying the password in command prompt is not secure as it gets displayed on screen and saved in the history.
> It should be possible to specify '-p' without an argument to make beeline prompt for password.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)