其他分享
首页 > 其他分享> > spark 启动thrift server实现hive on spark

spark 启动thrift server实现hive on spark

作者:互联网

在 spark的conf下 创建 hive-site.xml
不过在CDH中,hive是默认为hive on spark的,而不是mr

新增下面内容:

<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://www.cdh001.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的端口

标签:hive,server,metastore,connect,spark,uris,thrift
来源: https://blog.csdn.net/qq_37797234/article/details/112915742