You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Rok Kralj <ro...@gmail.com> on 2013/11/20 23:23:47 UTC

java.lang.OutOfMemoryError: Java heap space

Hello, I am getting this error (appearing after sending *SHOW TABLES;*query).

$ hive --service hiveserver2
Starting HiveServer2
Exception in thread "pool-4-thread-1" java.lang.OutOfMemoryError: Java heap
space
at
org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:181)
at
org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:253)
at
org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
at
org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:189)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)


I have this line:

export HADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-2048}


in *hive-config.sh*. Thanks.

-- 
eMail: rok.kralj@gmail.com

Re: java.lang.OutOfMemoryError: Java heap space

Posted by David Morel <dm...@gmail.com>.
On 22 Nov 2013, at 9:35, Rok Kralj wrote:

> If anybody has any clue what is the cause of this, I'd be happy to 
> hear it.
> On Nov 21, 2013 9:59 PM, "Rok Kralj" <ro...@gmail.com> wrote:

what does echo $HADOOP_HEAPSIZE return in the environment you're trying 
to launch hive from?

David

Re: java.lang.OutOfMemoryError: Java heap space

Posted by Rok Kralj <ro...@gmail.com>.
If anybody has any clue what is the cause of this, I'd be happy to hear it.
On Nov 21, 2013 9:59 PM, "Rok Kralj" <ro...@gmail.com> wrote:

> What?
> On Nov 21, 2013 8:24 PM, "Asher Devuyst" <as...@gmail.com> wrote:
>
>> unsubscribe
>>
>>
>> On Wed, Nov 20, 2013 at 5:23 PM, Rok Kralj <ro...@gmail.com> wrote:
>>
>>> Hello, I am getting this error (appearing after sending *SHOW TABLES;*query).
>>>
>>>  $ hive --service hiveserver2
>>> Starting HiveServer2
>>> Exception in thread "pool-4-thread-1" java.lang.OutOfMemoryError: Java
>>> heap space
>>> at
>>> org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:181)
>>>  at
>>> org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
>>> at
>>> org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:253)
>>>  at
>>> org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
>>> at
>>> org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
>>>  at
>>> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:189)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>  at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:744)
>>>
>>>
>>> I have this line:
>>>
>>> export HADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-2048}
>>>
>>>
>>> in *hive-config.sh*. Thanks.
>>>
>>> --
>>> eMail: rok.kralj@gmail.com
>>>
>>
>>

Re: java.lang.OutOfMemoryError: Java heap space

Posted by Rok Kralj <ro...@gmail.com>.
What?
On Nov 21, 2013 8:24 PM, "Asher Devuyst" <as...@gmail.com> wrote:

> unsubscribe
>
>
> On Wed, Nov 20, 2013 at 5:23 PM, Rok Kralj <ro...@gmail.com> wrote:
>
>> Hello, I am getting this error (appearing after sending *SHOW TABLES;*query).
>>
>> $ hive --service hiveserver2
>> Starting HiveServer2
>> Exception in thread "pool-4-thread-1" java.lang.OutOfMemoryError: Java
>> heap space
>> at
>> org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:181)
>>  at
>> org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
>> at
>> org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:253)
>>  at
>> org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
>> at
>> org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
>>  at
>> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:189)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>  at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:744)
>>
>>
>> I have this line:
>>
>> export HADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-2048}
>>
>>
>> in *hive-config.sh*. Thanks.
>>
>> --
>> eMail: rok.kralj@gmail.com
>>
>
>

Re: java.lang.OutOfMemoryError: Java heap space

Posted by Asher Devuyst <as...@gmail.com>.
unsubscribe


On Wed, Nov 20, 2013 at 5:23 PM, Rok Kralj <ro...@gmail.com> wrote:

> Hello, I am getting this error (appearing after sending *SHOW TABLES;*query).
>
> $ hive --service hiveserver2
> Starting HiveServer2
> Exception in thread "pool-4-thread-1" java.lang.OutOfMemoryError: Java
> heap space
> at
> org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:181)
>  at
> org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
> at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:253)
>  at
> org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
> at
> org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
>  at
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:189)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
>
>
> I have this line:
>
> export HADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-2048}
>
>
> in *hive-config.sh*. Thanks.
>
> --
> eMail: rok.kralj@gmail.com
>