[ https://issues.apache.org/jira/browse/HIVE-20734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16676241#comment-16676241 ]
mahesh kumar behera edited comment on HIVE-20734 at 11/6/18 9:12 AM: --------------------------------------------------------------------- [~thejas] [~vgumashta] i think -z should be used instead of != {code} if [ -z $CLIUSER ] ; then exec $HADOOP jar ${beelineJarPath} $CLASS $HIVE_OPTS "$@" else exec $HADOOP jar ${beelineJarPath} $CLASS $HIVE_OPTS "$@" -n "${CLIUSER}" -p "${CLIUSER}" fi {code} "$@" should be used before "-n" ..so that user given user name takes precedence over configured one was (Author: maheshk114): [~thejas] [~vgumashta] i think -z should be used instead of != {code} if [ -z $CLIUSER ] ; then exec $HADOOP jar ${beelineJarPath} $CLASS $HIVE_OPTS "$@" else exec $HADOOP jar ${beelineJarPath} $CLASS $HIVE_OPTS -n "${CLIUSER}" -p "${CLIUSER}" "$@" fi {code} > Beeline: When beeline-site.xml is and hive CLI redirects to beeline, it > should use the system username/dummy password instead of prompting for one > -------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-20734 > URL: https://issues.apache.org/jira/browse/HIVE-20734 > Project: Hive > Issue Type: Bug > Components: Beeline > Affects Versions: 3.1.0 > Reporter: Vaibhav Gumashta > Assignee: Vaibhav Gumashta > Priority: Major > Attachments: HIVE-20734.1.patch > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)