Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 020261172F for ; Mon, 4 Aug 2014 09:26:14 +0000 (UTC) Received: (qmail 69513 invoked by uid 500); 4 Aug 2014 09:26:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 69433 invoked by uid 500); 4 Aug 2014 09:26:13 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 69333 invoked by uid 500); 4 Aug 2014 09:26:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 69318 invoked by uid 99); 4 Aug 2014 09:26:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 09:26:13 +0000 Date: Mon, 4 Aug 2014 09:26:13 +0000 (UTC) From: "Adline Dsilva (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14084464#comment-14084464 ] Adline Dsilva commented on HIVE-2314: ------------------------------------- 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 > 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 was sent by Atlassian JIRA (v6.2#6252)