hive beeline使用

海綿不老發表於2020-12-20

1.hadoop叢集啟用 start-all.sh
2.啟用hive
3.開啟hiveserver2
4.beeline進入命令列:
輸入: !connect jdbc:hive2://hadoop1:10000/default
緊接著輸入使用者名稱、密碼

	[atguigu@hadoop1 root]$ beeline 
	Beeline version 1.2.1 by Apache Hive
	beeline> !connect jdbc:hive2://hadoop1:10000/default
	Connecting to jdbc:hive2://hadoop1:10000/default
	Enter username for jdbc:hive2://hadoop1:10000/default: atguigu
	Enter password for jdbc:hive2://hadoop1:10000/default: ******
	Connected to: Apache Hive (version 1.2.1)
	Driver: Hive JDBC (version 1.2.1)
	Transaction isolation: TRANSACTION_REPEATABLE_READ
	0: jdbc:hive2://hadoop1:10000/default> [atguigu@hadoop1 root]$ 

相關文章