【问题标题】:Unable to connect to hive server through knox无法通过 knox 连接到 hive 服务器
【发布时间】:2016-08-12 20:43:33
【问题描述】:

我正在使用下面提到的连接 URL 使用直线连接到 Hive 服务器。

!连接 jdbc:hive2://sandbox.hortonworks.com:21000/default;ssl=true;sslTrustStore=/var/lib/knox/data-2.3.2.0-2950/security/keystores/gateway.jks;trustStorePassword=knox?hive .server2.transport.mode=http;httpPath=gateway/default/hive

连接后出现以下错误。

无法使用 JDBC Uri 打开客户端传输: jdbc:hive2://sandbox.hortonworks.com:21000/default;ssl=true;sslTrustStore=/var/lib/knox/data-2.3.2.0-2950/security/keystores/gateway.jks;trustStorePassword=knox?hive .server2.transport.mode=http;httpPath=gateway/default/hive: 无法创建 http 连接到 jdbc:hive2://sandbox.hortonworks.com:21000/default;ssl=true;sslTrustStore=/var/lib/knox/data-2.3.2.0-2950/security/keystores/gateway.jks;trustStorePassword=knox?hive .server2.transport.mode=http;httpPath=gateway/default/hive。 javax.net.ssl.SSLException:无法识别的 SSL 消息,纯文本 联系? (state=08S01,code=0)

请帮助我解决此错误。

【问题讨论】:

    标签: hive hortonworks-data-platform hcatalog hortonworks-sandbox knox-gateway


    【解决方案1】:

    出现此错误的原因有多种。

    1. 确保 Knox 正在使用 ambari 运行并检查它使用的端口号。默认情况下,诺克斯使用 8443
    2. 检查 SSL 存储位置是否正确。它因您使用的沙盒版本而异
    3. 检查 trustStorePassword 是否正确。默认密码是 knox。否则,请使用您的 Knox 主密码。
    4. 确保 hive 配置设置为 hive.server2.transport.mode 为 http
    5. 配置更改后,请确保您重新启动了 knox 网关

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-24
      • 2013-07-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-17
      相关资源
      最近更新 更多