启动hive2

2018-05-31  本文已影响0人  金刚_30bf

版本: 2.3.3

首先启动 metasotre :
hive --service metastore &

然后启动 hiveserver2 :
hiveserver2 &

配置:

hive 客户端连接端口 9083 :

<property>
 <name>hive.metastore.uris</name>
 <value>thrift://node203.hmbank.com:9083</value>
 <description>Thrift uri for the remote metastore. Used by metastore client to connect to remote metastore.</description>
</property>

hive2 thrift 端口 :

  <property>
    <name>hive.server2.thrift.port</name>
    <value>10000</value>
    <description>Port number of HiveServer2 Thrift interface when hive.server2.transport.mode is ‘binary’.</description>
  </property>

  <property>
    <name>hive.server2.thrift.http.port</name>
    <value>10001</value>
    <description>Port number of HiveServer2 Thrift interface when hive.server2.transport.mode is ‘http’.</description>
  </property>

HiveServer2 Web UI 配置 :

hive.server2.webui.host
hive.server2.webui.port   默认10002 
上一篇下一篇

猜你喜欢

热点阅读