天天看點

hive metastore異常 org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client

hiveserver2的端口是10000

hive.metastoe.uris 的端口9083改為10000之後

beelien 連接配接hiveserver2報錯

Error: Could not open client transport with JDBC Uri: jdbc:hive2://172.16.145.124:10000 hive

使用者和密碼都沒數錯,試了好幾次還是不能連接配接

檢視hive  metastore的日志,發現有錯誤資訊:

hive metastore異常 org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client

想了想是不是因為metastore和hiveserver使用的是相同的端口導緻的,于是把hive.metastore.uris的端口改回9083後,

hive metastore異常 org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client
hive metastore異常 org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client

修改後連接配接成功

hive metastore異常 org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client