hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 王锋 <>
Subject Re:RE: Problem with Hive JDBC server
Date Tue, 05 Feb 2013 05:06:05 GMT

When I was using hiveserver ,the exception was thrown:

2060198 Hive history file=/tmp/hdfs/hive_job_log_hdfs_201302010032_1918750748.txt
2060199 Exception in thread "pool-1-thread-95" java.lang.OutOfMemoryError: Java heap space
2060200     at org.apache.thrift.protocol.TBinaryProtocol.readStringBody(
2060201     at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(
2060202     at org.apache.hadoop.hive.service.ThriftHive$Processor.process(
2060203     at org.apache.thrift.server.TThreadPoolServer$
2060204     at java.util.concurrent.ThreadPoolExecutor.runWorker(
2060205     at java.util.concurrent.ThreadPoolExecutor$
2060206     at

I using Hive-0.7.1-cdh3u1 with thrift-0.5.0.jar and thrift-fb303-0.5.0.jar.
how can it be fixed? how about hive-0.7-1 using thrift -0.9.0?  thanks. 

At 2013-02-04 19:19:16,"Bennie Schut" <> wrote:

Looking at the versions you might be hitting
which is fixed in 0.10


On my dev machine the test runs with success :Running time: 298.952409914

This includes this patch so it’s worth looking at.


From: Gabor Makrai []
Sent: Monday, February 04, 2013 11:58 AM
Subject: Re: Problem with Hive JDBC server


Yes, of course! I attached the code!


On Mon, Feb 4, 2013 at 11:57 AM, Gabor Makrai <> wrote:

Yes, of course! :) I attached the code!


On Mon, Feb 4, 2013 at 11:53 AM, Bennie Schut <> wrote:

Since it’s small can you post the code?


From: Gabor Makrai []
Sent: Monday, February 04, 2013 11:45 AM
Subject: Problem with Hive JDBC server


Hi guys,


I'm writing you because I experienced a very strange problem which probably affects all Hive

I made a small "only main function" Java program where I'm only connecting to my Hive JDBC,
and getting the list of the database tables (LIST TABLES) and closing the ResultSet, the Statement
and the Connection and doing this a 1000 times. The problem is that the running Hive JDBC
server does not release files and with time it will throw Exception because, it will get "Too
many open files" IOException from the JVM.


I tested with Hive 0.9, 0.8.1, and the patched Hive 0.9 installed in CDH4.1.1.


If it is a know issue, than could you tell me the solution for it? If it is not, than I can
create a new ticket in Jira, and with a little help, I probably can fix the problem and contribute
the solution for it.





View raw message