Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-29209

Fail to connect HiveServer endpoint with TProtocolException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 1.16.0
    • 1.16.0
    • Connectors / Hive
    • None

    Description

      When I try to connect HiveServer endpoint with some BI tools like Apache SuperSet / FineBI / MetaBase, it fails to connect with the following exception:

      2022-09-05 20:12:36,179 ERROR org.apache.thrift.server.TThreadPoolServer                   [] - Thrift error occurred during processing of message.
      org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
          at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:228) ~[flink-sql-connector-hive-2.3.9_2.12-1.16-SNAPSHOT.jar:1.16-SNAPSHOT]
          at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27) ~[flink-sql-connector-hive-2.3.9_2.12-1.16-SNAPSHOT.jar:1.16-SNAPSHOT]
          at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) [flink-sql-connector-hive-2.3.9_2.12-1.16-SNAPSHOT.jar:1.16-SNAPSHOT]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_332]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_332]
          at java.lang.Thread.run(Thread.java:750) [?:1.8.0_332] 

      The jdbc url is "jdbc:hive2://host:port/default;auth=noSasl".

      But then I try to connect Hive's own HiveServer, the jdbc url is "jdbc:hive2://host:port/default",  it works well.

      Seems we need extra configuration or adaption to connect to Flink's HiveServer endpoint 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              luoyuxia luoyuxia
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: