无法通过Hue连接Hive

时间:2019-03-20 10:13:47

标签: ssl hive cloudera-cdh hue

我有一个cloudera设置,并且在其中启用了hive的SSL,并且还在hue.ini conf文件中启用了与HiveServer2的hue TLS / SSL通信。

更改完成后,尝试从色相连接到Hive,然后显示以下错误 “ 远程主机的证书错误:主机名'quickstart.cloudera'与u'cm01.example.com '不匹配。”

配置单元配置

<property>
  <name>hive.server2.use.SSL</name>
  <value>true</value>
  <description>enable/disable SSL </description>
</property>

<property>
  <name>hive.server2.keystore.path</name>
  <value>/opt/cloudera/security/jks/cmhost-keystore.jks</value>
  <description>keystore-file-path</description>
</property>

<property>
  <name>hive.server2.keystore.password</name>
  <value>xyz</value>
  <description>keystore password</description>
</property>

色调配置:

# SSL communication enabled for this server.
enabled=true

# Path to Certificate Authority certificates.
cacerts=/etc/hue/cmhost.pem

# Path to the private key file.
## key=/etc/hue/key.pem

# Path to the public certificate file.
## cert=/etc/hue/cert.pem

# Choose whether Hue should validate certificates received from the   server.
validate=true

0 个答案:

没有答案