【记录】hive连接报错Required field 'client_protocol' is unset! Struct:TOpenSessionReq
如图:
解决
现在用的是
<dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>2.3.3</version> </dependency>
修改为
<dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>1.1.0</version> </dependency>
参考文章:https://blog.csdn.net/zt15732625878/article/details/85245731