Beeline version 1.2.1 by Apache Hive beeline> !connect jdbc:hive://centoshostnameKL2:10000

Last login: Thu Feb  8 20:00:21 2018 from 192.168.72.200
[wangshumin@centoshostnameKL2 ~]$ netstat -nltp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:54762               0.0.0.0:*                   LISTEN      -                   
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      -                   
tcp        0      0 0.0.0.0:10000               0.0.0.0:*                   LISTEN      2872/java           
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      -                   
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      -                   
tcp        0      0 0.0.0.0:50010               0.0.0.0:*                   LISTEN      2227/java           
tcp        0      0 0.0.0.0:50075               0.0.0.0:*                   LISTEN      2227/java           
tcp        0      0 0.0.0.0:50020               0.0.0.0:*                   LISTEN      2227/java           
tcp        0      0 :::8040                     :::*                        LISTEN      2315/java           
tcp        0      0 :::8042                     :::*                        LISTEN      2315/java           
tcp        0      0 :::3306                     :::*                        LISTEN      -                   
tcp        0      0 :::60076                    :::*                        LISTEN      2315/java           
tcp        0      0 :::111                      :::*                        LISTEN      -                   
tcp        0      0 :::22                       :::*                        LISTEN      -                   
tcp        0      0 ::1:631                     :::*                        LISTEN      -                   
tcp        0      0 :::13562                    :::*                        LISTEN      2315/java           
tcp        0      0 :::39450                    :::*                        LISTEN      -                   
[wangshumin@centoshostnameKL2 ~]$ beeline
Beeline version 1.2.1 by Apache Hive
beeline> !connect jdbc:hive://centoshostnameKL2:10000
scan complete in 1ms
18/02/08 21:02:18 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: minlog-1.2.jar (没有那个文件或目录)
18/02/08 21:02:18 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: objenesis-1.2.jar (没有那个文件或目录)
18/02/08 21:02:18 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: reflectasm-1.07-shaded.jar (没有那个文件或目录)
scan complete in 2963ms
No known driver to handle "jdbc:hive://centoshostnameKL2:10000"
beeline> !connect jdbc:hive://centoshostnameKL2:10000
scan complete in 1ms
18/02/08 21:02:54 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: minlog-1.2.jar (没有那个文件或目录)
18/02/08 21:02:54 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: objenesis-1.2.jar (没有那个文件或目录)
18/02/08 21:02:54 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: reflectasm-1.07-shaded.jar (没有那个文件或目录)
scan complete in 612ms
No known driver to handle "jdbc:hive://centoshostnameKL2:10000"
beeline> !connect jdbc:hive2://centoshostnameKL2:10000
Connecting to jdbc:hive2://centoshostnameKL2:10000
Enter username for jdbc:hive2://centoshostnameKL2:10000: root
Enter password for jdbc:hive2://centoshostnameKL2:10000: ****
Connected to: Apache Hive (version 1.2.1)
Driver: Hive JDBC (version 1.2.1)
Transaction isolation: TRANSACTION_REPEATABLE_READ

0: jdbc:hive2://centoshostnameKL2:10000> 

0: jdbc:hive2://centoshostnameKL2:10000> show databases;
+----------------+--+
| database_name  |
+----------------+--+
| default        |
| hive2_db1      |
| hive2_db2      |
| hive2_db3      |
+----------------+--+
4 rows selected (1.65 seconds)
0: jdbc:hive2://centoshostnameKL2:10000> 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值