您的位置:首页 > 其它

spark 启动thrift server 支持 jdbc连接

2016-04-19 16:01 239 查看
在 ./conf下 创建 hive-site.xml

添加:
<configuration>

<property>
<name>hive.metastore.client.connect.retry.delay</name>
<value>5</value>
</property>

<property>
<name>hive.metastore.client.socket.timeout</name>
<value>1800</value>
</property>

<property>
<name>hive.metastore.connect.retries</name>
<value>24</value>
</property>

<property>
<name>hive.metastore.uris</name>
<value>thrift://hq001.gotop.com:9083</value>
</property>

<property>
<name>hive.server2.thrift.port</name>
<value>10015</value>
</property>

<property>
<name>hive.server2.transport.mode</name>
<value>binary</value>
</property>

</configuration>
说明:hive.metastore.uris为hive的元数据获取地址
10015为jdbc连接spark的端口
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  spark