Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-25844

Exception deserialization error-s may cause beeline to terminate immediately

    XMLWordPrintableJSON

Details

    Description

      the exception on the server side happens:

      • fetch task conversion is on
      • there is an exception during reading the table the error bubbles up
      • => transmits a message to beeline that error class name is: "org.apache.phoenix.schema.ColumnNotFoundException" + the message
      • it tries to reconstruct the exception around HiveSqlException
      • but during the constructor call org.apache.phoenix.exception.SQLExceptionCode is needed which fails to load org/apache/hadoop/hbase/shaded/com/google/protobuf/Service
      • a
        java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/shaded/com/google/protobuf/Service is thrown - which is not handled in that method - so it becomes a real error ; and shuts down the client
      java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/shaded/com/google/protobuf/Service
      [...]
          at java.lang.Class.forName(Class.java:264)
          at org.apache.hive.service.cli.HiveSQLException.newInstance(HiveSQLException.java:245)
          at org.apache.hive.service.cli.HiveSQLException.toStackTrace(HiveSQLException.java:211)
      [...]
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.shaded.com.google.protobuf.Service
      [...]
      

      Attachments

        Issue Links

          Activity

            People

              kgyrtkirk Zoltan Haindrich
              kgyrtkirk Zoltan Haindrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m