我已经在端口 10015 上启动了 spark thrift 服务器。它启动成功,我也可以连接到 metastore,但是我无法使用 beeline 连接到 Spark thrift 服务器。如果我错过了什么,请告诉我。
--------我遵循的过程如下------------
[root@hadoopdashuju009154 bin]# netstat -an|grep 10015
tcp 0 0 10.2.9.154:10015 0.0.0.0:* LISTEN
[root@hadoopdashuju009154 bin]#
- 我在 spark_home conf 目录下的 hive-site.xml
<property>
<name>hive.server2.thrift.port</name>
<value>10015</value>
<description>
Port number of HiveServer2 Thrift interface. Can be overridden by
setting $HIVE_SERVER2_THRIFT_PORT
</description>
</property>
<property>
<name>hive.server2.thrift.bind.host</name>
<value>10.2.9.154</value>
<description>Bind host on which to run the HiveServer2 Thrift interface.
Can be overridden by setting $HIVE_SERVER2_THRIFT_BIND_HOST</description>
</property>
- 当我使用直线连接到 spark thrift 服务器时出错
[root@hadoopdashuju009154 bin]# ./beeline -u jdbc:hive2://hadoopdashuju009154.ppdgdsl.com:10015
scan complete in 2ms
Connecting to jdbc:hive2://hadoopdashuju009154.ppdgdsl.com:10015
18/05/23 17:28:57 INFO jdbc.Utils: Supplied authorities:
hadoopdashuju009154.ppdgdsl.com:10015
18/05/23 17:28:57 INFO jdbc.Utils: Resolved authority:
hadoopdashuju009154.ppdgdsl.com:10015
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge.getCanonicalHostName(Ljava/lang/String;)Ljava/lang/String;
Beeline version 1.1.0-cdh5.14.0 by Apache Hive
0: jdbc:hive2://hadoopdashuju009154.ppdgdsl.c (closed)>
[root@hadoopdashuju009154 bin]#