解決方案
在${HIVE_HOME}/conf目錄下手動(dòng)添加beeline-hs2-connection.xml配置文件爷辱,并配置登錄信息续挟,具體如下筹淫。
注意:建議直接復(fù)制conf目錄下的一份xml配置文件想际,清空后再配置信息皱炉。否則會(huì)出現(xiàn)因文件編碼錯(cuò)誤導(dǎo)致的報(bào)錯(cuò)怀估。
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
? ? <property>
? ? ? <name>beeline.hs2.connection.user</name>
? ? ? <value>username</value>
? ? </property>
? ? <property>
? ? ? <name>beeline.hs2.connection.password</name>
? ? ? <value>password</value>
? ? </property>
</configuration>