spark下
[root@s101 /soft/spark/bin]#./beeline Beeline version 1.2.1.spark2 by Apache Hive beeline> !connect jdbc:hive2://s101:10000/mydb
0: jdbc:hive2://s101:10000/mydb> show databases;
+---------------+--+
| databaseName |
+---------------+--+
| default |
| mydb |
+---------------+--+
2 rows selected (9.86 seconds)