[ https://issues.apache.org/jira/browse/HIVE-13589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15435315#comment-15435315 ]
Vihang Karajgaonkar commented on HIVE-13589: -------------------------------------------- [~Ferd] I agree that we should not change the behavior of -p argument since it will break backwards compatibility. Adding another option to achieve the same purpose seems to be a overkill. Beeline should be smart enough to prompt for the password if there is no password given at the command line. eg: 1. beeline -u "jdbc:hive2://localhost:10000" -n username > beeline should prompt for the password. 2. beeline -u "jdbc:hive2://localhost:10000" -n username -p <password is expected because -p is provided> If we can achieve (1) above within beeline, I think that should be sufficient to solve this issue without any work-arounds mentioned by [~thejas] in the first comment. > 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)