Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33525

Upgrade hive-service-rpc to 3.1.2

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      We supported Hive metastore are 0.12.0 through 3.1.2. but we supported hive-jdbc are 0.12.0 through 2.3.7. It will throw TProtocolException if we use hive-jdbc 3.x:

      [root@spark-3267648 apache-hive-3.1.2-bin]# bin/beeline -u jdbc:hive2://localhost:10000/default
      Connecting to jdbc:hive2://localhost:10000/default
      Connected to: Spark SQL (version 3.1.0-SNAPSHOT)
      Driver: Hive JDBC (version 3.1.2)
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      Beeline version 3.1.2 by Apache Hive
      0: jdbc:hive2://localhost:10000/default> create table t1(id int) using parquet;
      Unexpected end of file when reading from HS2 server. The root cause might be too many concurrent connections. Please ask the administrator to check the number of active connections, and adjust hive.server2.thrift.max.worker.threads if applicable.
      Error: org.apache.thrift.transport.TTransportException (state=08S01,code=0)
      
      org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
      	at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:234)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27)
      	at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:53)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:310)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
      	at java.base/java.lang.Thread.run(Thread.java:832)
      

      We can upgrade hive-service-rpc to 3.1.2 to fix this issue.

      Attachments

        Issue Links

          Activity

            People

              yumwang Yuming Wang
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: