[ https://issues.apache.org/jira/browse/HIVE-22355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17017901#comment-17017901 ]
Hive QA commented on HIVE-22355: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12991135/HIVE-22355.5.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 17880 tests executed *Failed tests:* {noformat} org.apache.hive.beeline.TestBeelinePasswordOption.testConnectWithoutPromptWhenAuthIsNone (batchId=283) org.apache.hive.beeline.TestBeelinePasswordOption.testConnectWithoutPromptWhenAuthIsNoneAndUserOptionSet (batchId=283) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/20223/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/20223/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-20223/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 2 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12991135 - PreCommit-HIVE-Build > Beeline should not prompt for hive user and password when authentication is > NONE > -------------------------------------------------------------------------------- > > Key: HIVE-22355 > URL: https://issues.apache.org/jira/browse/HIVE-22355 > Project: Hive > Issue Type: Bug > Components: Beeline > Reporter: Mate Juhasz > Assignee: Mate Juhasz > Priority: Major > Attachments: HIVE-22355.1.patch, HIVE-22355.2.patch, > HIVE-22355.3.patch, HIVE-22355.4.patch, HIVE-22355.5.patch > > > Beeline - without adding the jdbc url - prompts for username and password in > case hive.server2.authentication=NONE, which is possibly pointless and can be > misleading for users as any input is accepted. > In addition, Sqoop has dropped hive cli recently in favor of beeline and if > there is no authentication set in Hive, Sqoop fails to connect as the process > stops waiting for the user/password input. > I think it would be nice to check the auth type "NONE" before reading unused > inputs from the console before this point: > https://github.com/apache/hive/blob/master/beeline/src/java/org/apache/hive/beeline/Commands.java#L1641 -- This message was sent by Atlassian Jira (v8.3.4#803005)