我们可以使用以下代码示例来解决这个问题。需要将连接的URL更改为thrift://localhost:9083,如下所示:
!connect jdbc:hive2://thrift://localhost:9083/default;principal=hive/_HOST@EXAMPLE.COM
这将在Beeline中创建一个连接,以便您可以通过ThriftServer访问Hive。
上一篇:Beeline无法找到私有方法"getKeytab"。
下一篇:Beeline在通过GNU并行运行时卡在第二个命令