0.13.1 和1.2.1 的区别
(1) 可以完全使用hivesever1 ,按照0.8.x前面的版本配置启动
(2) 按照1.2.1 的写法,需要对hive0.13.1 的hive-site.xml进行设置
<property>
<name>hive.server2.thrift.bind.host</name>
<value>192.168.222.131</value>
<description>Bind host on which to run the HiveServer2 Thrift interface.
Can be overridden by setting $HIVE_SERVER2_THRIFT_BIND_HOST</description>
</property>
<property>
<name>hive.server2.long.polling.timeout</name>
<value>5000</value>
<description>Time in milliseconds that HiveServer2 will wait, before responding to asynchronous calls that
use long polling</description>
</property>
注意:
在0.13版本中写的程序,无论是连接hive0.13 的hiveserver还是hiveserver2都可以完成
也可以连接hive1.2.1 的hiveserver2(Hive 1.2.1 的hiveserver1 启动不了)
而1.2.1的程序确只能连接hive1.2.1 的 ,不能连接 0.13.1 的hiveserver2
(1) 可以完全使用hivesever1 ,按照0.8.x前面的版本配置启动
(2) 按照1.2.1 的写法,需要对hive0.13.1 的hive-site.xml进行设置
<property>
<name>hive.server2.thrift.bind.host</name>
<value>192.168.222.131</value>
<description>Bind host on which to run the HiveServer2 Thrift interface.
Can be overridden by setting $HIVE_SERVER2_THRIFT_BIND_HOST</description>
</property>
<property>
<name>hive.server2.long.polling.timeout</name>
<value>5000</value>
<description>Time in milliseconds that HiveServer2 will wait, before responding to asynchronous calls that
use long polling</description>
</property>
注意:
在0.13版本中写的程序,无论是连接hive0.13 的hiveserver还是hiveserver2都可以完成
也可以连接hive1.2.1 的hiveserver2(Hive 1.2.1 的hiveserver1 启动不了)
而1.2.1的程序确只能连接hive1.2.1 的 ,不能连接 0.13.1 的hiveserver2