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

JDBC HiveConnection.close() throws an exception: Error while cleaning up the server resources, caused by: org.apache.thrift.TApplicationException: Invalid method name: 'clean'

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      From time to time, when calling JDBC HiveConnection.close() an exception is thrown:

      Connection.close()
      java.sql.SQLException: Error while cleaning up the server resources
      at org.apache.hadoop.hive.jdbc.HiveConnection.close(HiveConnection.java:134)
      at net.sf.log4jdbc.ConnectionSpy.close(ConnectionSpy.java:896)
      at org.springframework.jdbc.datasource.DataSourceUtils.doReleaseConnection(DataSourceUtils.java:313)
      at org.springframework.jdbc.datasource.DataSourceUtils.releaseConnection(DataSourceUtils.java:274)
      at org.springframework.jdbc.datasource.DataSourceUtils$ConnectionSynchronization.beforeCompletion(DataSourceUtils.java:428)
      at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCompletion(TransactionSynchronizationUtils.java:84)
      ...

      Caused by: org.apache.thrift.TApplicationException: Invalid method name: 'clean'
      at org.apache.thrift.TApplicationException.read(TApplicationException.java:108)
      at org.apache.hadoop.hive.service.ThriftHive$Client.recv_clean(ThriftHive.java:418)
      at org.apache.hadoop.hive.service.ThriftHive$Client.clean(ThriftHive.java:402)
      at org.apache.hadoop.hive.jdbc.HiveConnection.close(HiveConnection.java:132)

        Activity

        Hide
        4d1in3 Adline Dsilva added a comment -

        This issue occurs when hive connection is used in threads. When one thread using hive connection is executing a query while another thread is trying close the same hive connection

        Show
        4d1in3 Adline Dsilva added a comment - This issue occurs when hive connection is used in threads. When one thread using hive connection is executing a query while another thread is trying close the same hive connection
        Hide
        chinnalalam Chinna Rao Lalam added a comment -

        Hi Ido Hadanny,

        Can u update what is the scenario.

        Create connection and close that connection not throwing any exception and same thing is automated in this test case "org.apache.hadoop.hive.jdbc.TestJdbcDriver".

        Show
        chinnalalam Chinna Rao Lalam added a comment - Hi Ido Hadanny, Can u update what is the scenario. Create connection and close that connection not throwing any exception and same thing is automated in this test case "org.apache.hadoop.hive.jdbc.TestJdbcDriver".

          People

          • Assignee:
            Unassigned
            Reporter:
            ihadanny Ido Hadanny
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development