[
https://issues.apache.org/jira/browse/HIVE-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126458#comment-13126458
]
Chinna Rao Lalam commented on HIVE-2314:
----------------------------------------
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".
> JDBC HiveConnection.close() throws an exception: Error while cleaning up the
> server resources, caused by: org.apache.thrift.TApplicationException: Invalid
> method name: 'clean'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HIVE-2314
> URL: https://issues.apache.org/jira/browse/HIVE-2314
> Project: Hive
> Issue Type: Bug
> Reporter: Ido Hadanny
> Priority: Minor
> Labels: jdbc
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira