Spark 使用的hive-site.xml 配置如下:
xml
<property>
<name>hive.server2.transport.mode</name>
<value>binary</value>
</property>
<property>
<name>hive.server2.thrift.http.port</name>
<value>10003</value>
</property>
beeline 连接 Spark thriftServer 的参数
sql
!connect jdbc:hive2://master-08a616e:10003/default?hive.server2.transport.mode=http;hive.server2.thrift.http.path=cliservice