哎總是忘了做個筆記。
1.
beeline -u jdbc:hive2://localhost:10000/big12
2.
第一步:先啟動hiveserver2----必須啟動
第二步:
<property> <name>hive.server2.authentication</name> <value>NOSASL</value> <!-- 如果出現SASL那就一定需要修改這個屬性,而且啟動beeline要加屬性;auth=noSasl-->
</property>
啟動beeline: 1)[centos@s101 ~]$ beeline 2)beeline> !connect jdbc:hive2://localhost:10000/big12;auth=noSasl
