Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 886 Bytes

Hive-beeline连接.md

File metadata and controls

35 lines (27 loc) · 886 Bytes

启动hiveserver2服务

[kino@bigdata01.sutpc hive]$ bin/hiveserver2

启动beeline

[kino@bigdata01.sutpc hive]$ bin/beeline
Beeline version 1.2.1 by Apache Hive
beeline>

连接hiveserver2

beeline> !connect jdbc:hive2://bigdata01.sutpc:10006(回车)
Connecting to jdbc:hive2://bigdata01.sutpc:10006
Enter username for jdbc:hive2://bigdata01.sutpc:10006: hdfs(回车)
Enter password for jdbc:hive2://bigdata01.sutpc:10006: (直接回车)
Connected to: Apache Hive (version 1.2.1)
Driver: Hive JDBC (version 1.2.1)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://bigdata01.sutpc:10006> show databases;