【问题标题】:Beeline error connecting to Hive2连接到 Hive2 的直线错误
【发布时间】:2016-10-18 00:20:10
【问题描述】:

这是我在直线上的命令 !connect jdbc:hive2://localhost:10000

我收到了这个错误

无法使用 JDBC Uri 打开客户端传输:jdbc:hive2://localhost:10000: null (state=08S01,code=0)

如何解决?

【问题讨论】:

  • 你的问题解决了吗..
  • 我不确定,但是当我尝试这个命令时,我可以连接到 hive 数据库!connect jdbc:hive2://
  • 能否告诉您在 hive-site.xml 中设置的这个 hive.server2.authentication 属性的值是什么?

标签: hadoop hive beeline


【解决方案1】:

检查 hive 服务器是否在 http 模式下运行。

【讨论】:

【解决方案2】:

您需要像下面的命令一样设置身份验证才能进入直线。

这取决于 hive-site.xml 中的 hive.server2.authentication 属性值

嵌入式模式:

    !connect jdbc:hive2://

SASL 身份验证:

如果 hive.server2.authentication=SASL 然后像下面那样开始直线

        !connect jdbc:hive2://<host>:<port>/<db>

NOSASL 身份验证:hive.server2.authentication=NOSASL

        !connect jdbc:hive2://<host>:<port>/<db>;auth=noSasl

HTTP 模式:hive.server2.authentication=HTTP

!connect jdbc:hive2://<host>:<port>/<db>;hive.server2.transport.mode=http;

只要去属性和开始直线取决于上面的值。它会开始没有错误

希望对你有帮助

【讨论】:

    猜你喜欢
    • 2017-03-07
    • 1970-01-01
    • 2018-02-04
    • 1970-01-01
    • 1970-01-01
    • 2018-03-12
    • 2020-03-02
    • 2015-05-08
    • 2018-01-28
    相关资源
    最近更新 更多