天天看点

hive客户端连接服务端报错“Required field 'client_protocol' is unset! ”异常解决

        今天在将springboot项目中运行时,调用集群hive服务器端的时候,报了这个异常!

hive客户端连接服务端报错“Required field 'client_protocol' is unset! ”异常解决

        其中的

Required field 'client_protocol' is unset!

一度让我怀疑yml配置文件出差错了。

        后来在不断在国内外平台上不断查找原因,终于明白了:

        项目的Pom文件中hive-jdbc版本号必须要与hive Server的version要保持一致

解决方案

        先进入到hive的安装目录下,查看当前hive的版本。