Spark Thrift beeline:必填字段“client_protocol”未设置

Pav*_*vel 1 apache-spark beeline hdp

我在 HDP 3.1 中启动了 Spark Thrift Server。

我尝试通过直线连接到它: beeline -u "jdbc:hive2://myhost.mybank.rus:10016/public"

我得到了错误:

19/10/10 00:17:08 [main]: ERROR jdbc.HiveConnection: Error opening session org.apache.thrift.TApplicationException: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{set:hiveconf: at ...

我只发现它需要 hive/beeline jar 的旧版本,但是如何配置它?

Pav*_*vel 5

花几个小时寻找答案。没有人说 Spark 有自己的直线工具:

/usr/hdp/3.1.4.0-315/spark2/bin/beeline

它有效:)