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
[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>