无法以http模式连接到Hiveserver2
我计划将Knox应用于我们的HDP2.2集群,但我遇到了hiveserver2 http模式连接。我对hive-site.xml进行了如下配置:无法以http模式连接到Hiveserver2,hive,mode,transport,Hive,Mode,Transport,我计划将Knox应用于我们的HDP2.2集群,但我遇到了hiveserver2 http模式连接。我对hive-site.xml进行了如下配置: <property> <name>hive.server2.enable.doAs</name> <value>true</value> </property> <property> <name>fs.hdfs.imp
<property>
<name>hive.server2.enable.doAs</name>
<value>true</value>
</property>
<property>
<name>fs.hdfs.impl.disable.cache</name>
<value>true</value>
</property>
<property>
<name>fs.file.impl.disable.cache</name>
<value>true</value>
</property>
<property>
<name>hive.server2.allow.user.substitution</name>
<value>true</value>
</property>
<property>
<name>hive.server2.thrift.http.path</name>
<value>cliservice</value>
<description>Path component of URL endpoint when in HTTP mode.</description>
</property>
<property>
<name>hive.server2.transport.mode</name>
<value>http</value>
</property>
<property>
<name>hive.server2.thrift.http.port</name>
<value>10010</value>
</property>
<property>
<name>hive.server2.thrift.http.min.worker.threads</name>
<value>5</value>
</property>
<property>
<name>hive.server2.thrift.http.max.worker.threads</name>
<value>100</value>
</property>
hive.server2.enable.doAs
真的
fs.hdfs.impl.disable.cache
真的
fs.file.impl.disable.cache
真的
hive.server2.allow.user.substitution
真的
hive.server2.thrift.http.path
cliservice
处于HTTP模式时URL端点的路径组件。
hive.server2.transport.mode
http
hive.server2.thrift.http.port
10010
hive.server2.thrift.http.min.worker.threads
5.
hive.server2.thrift.http.max.worker.threads
100
但是,当我尝试通过直线连接到服务器时,直线挂起。日志文件中没有异常和错误消息。如果我把交通方式改成“宾尼亚里”,问题就完全解决了。我不知道为什么会这样
我该怎么办