使用直线连接到spark thrift服务器时出现的问题

00jrzges  于 2021-06-26  发布在  Hive
关注(0)|答案(1)|浏览(440)

我已经在10015端口启动了spark thrift服务器。它启动成功,我也可以连接到元商店,但我无法使用直线连接到spark thrift服务器。如果我遗漏了什么,请告诉我。
-------我遵循的过程如下

6ovsh4lw

6ovsh4lw1#

--
[root@hadoopdashuju009154 银行代码]#netstat-an | grep 10015
tcp 0 0 10.2.9.154:10015 0.0.0.0:*听
[root@hadoopdashuju009154 垃圾箱]#
-spark\u home conf目录下的my 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]#/直线-ujdbc:hive2http://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 垃圾箱]#

相关问题