hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Prakash (JIRA)" <>
Subject [jira] [Commented] (HIVE-6468) HS2 out of memory error when curl sends a get request
Date Mon, 30 Jun 2014 17:39:25 GMT


Ravi Prakash commented on HIVE-6468:

Hi Navis! Thanks a lot for your patch! I'm glad at least someone is cognizant of the severity
of this problem. Do you think we should increase the priority for this JIRA?

The patch looks good to me overall except for a few nits. FWIW, here they are:
1. Could we just rewrite authTypeStr.equalsIgnoreCase( -> authType
== AuthTypes.KERBEROS
2. You're catching Exception. Any reason you changed this from IOException? IMHO IOException
would have been preferable
3. This block is unnecessary {code}     } else {
      saslServer = null;
    } {code}
4. getAuthTransFactory() is throwing Exception now. Why did you have to change that from LoginException?

1. public String mechanism; is never used
2. I'm not sure what the consequences of using WeakReferences and WeakHashMap will be. Could
you please comment on that?
3. Can we also put a timeout on {code} underlyingTransport.readAll(messageHeader, 0, messageHeader.length);
{code}  if there isn't one already?

> HS2 out of memory error when curl sends a get request
> -----------------------------------------------------
>                 Key: HIVE-6468
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>         Environment: Centos 6.3, hive 12, hadoop-2.2
>            Reporter: Abin Shahab
>            Assignee: Navis
>         Attachments: HIVE-6468.1.patch.txt, HIVE-6468.2.patch.txt
> We see an out of memory error when we run simple beeline calls.
> (The hive.server2.transport.mode is binary)
> curl localhost:10000
> Exception in thread "pool-2-thread-8" java.lang.OutOfMemoryError: Java heap space
> 	at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(
> 	at org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(
> 	at
> 	at
> 	at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(
> 	at org.apache.thrift.server.TThreadPoolServer$
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at

This message was sent by Atlassian JIRA

View raw message