hive server http模式

hive-site.xml

做如下两个配置

<property>

  <name>hive.server2.transport.mode</name>

  <value>http</value>

  <description>Server transport mode. "binary" or "http".</description>

</property>

 

<property>

  <name>hive.server2.enable.doAs</name>

  <value>false</value>

  <description>

   Setting this property to true will have hive server2 execute

    hive operations as the user making the calls to it.

  </description>

</property>

 

hive/conf/hive-env.sh防止中文乱码

export HADOOP_OPTS="$HADOOP_OPTS -Dfile.encoding=UTF-8"


你可能感兴趣的:(hive server http模式)