在 ./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的端口