<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question HiveServer2 - Large User Query caused hang in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136660#M19034</link>
    <description>&lt;P&gt;A user was running a large query and caused our Hive Server to become hung.  While the hive cli would still come up, if we tried to run a simple 'select 1;' query it would never return.  If we tried to run something via JDBC, we would get a transport exception.  Below is a stack trace that we were able to get.  How do we prevent this from happening in the future?  We eventually restarted Hive to get back into an operational state.&lt;/P&gt;&lt;PRE&gt;at org.apache.hadoop.hive.ql.ppd.ExprWalkerInfo.isCandidate(ExprWalkerInfo.java:165)
        at org.apache.hadoop.hive.ql.ppd.ExprWalkerProcFactory.extractFinalCandidates(ExprWalkerProcFactory.java:330)
        at org.apache.hadoop.hive.ql.ppd.ExprWalkerProcFactory.extractPushdownPreds(ExprWalkerProcFactory.java:299)
        at org.apache.hadoop.hive.ql.ppd.OpProcFactory$DefaultPPD.mergeWithChildrenPred(OpProcFactory.java:746)
        at org.apache.hadoop.hive.ql.ppd.OpProcFactory$FilterPPD.process(OpProcFactory.java:437)
        at org.apache.hadoop.hive.ql.lib.DefaultRuleDispatcher.dispatch(DefaultRuleDispatcher.java:90)
        at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.dispatchAndReturn(DefaultGraphWalker.java:95)
        at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.dispatch(DefaultGraphWalker.java:79)
        at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.walk(DefaultGraphWalker.java:133)
        at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.startWalking(DefaultGraphWalker.java:110)
        at org.apache.hadoop.hive.ql.ppd.PredicatePushDown.transform(PredicatePushDown.java:135)
        at org.apache.hadoop.hive.ql.optimizer.Optimizer.optimize(Optimizer.java:192)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:10189)
        at org.apache.hadoop.hive.ql.parse.CalcitePlanner.analyzeInternal(CalcitePlanner.java:209)
        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:227)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:424)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:308)
        at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1122)
        - locked &amp;lt;0x00000000c0ce9d60&amp;gt; (a java.lang.Object)
        at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1116)
        at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:110)
        at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:181)
        at org.apache.hive.service.cli.operation.Operation.run(Operation.java:257)
        at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:388)
        at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:375)
        at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:274)
        at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:486)
        at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
        at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)


&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Feb 2016 09:24:21 GMT</pubDate>
    <dc:creator>jpasswaters</dc:creator>
    <dc:date>2016-02-11T09:24:21Z</dc:date>
    <item>
      <title>HiveServer2 - Large User Query caused hang</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136660#M19034</link>
      <description>&lt;P&gt;A user was running a large query and caused our Hive Server to become hung.  While the hive cli would still come up, if we tried to run a simple 'select 1;' query it would never return.  If we tried to run something via JDBC, we would get a transport exception.  Below is a stack trace that we were able to get.  How do we prevent this from happening in the future?  We eventually restarted Hive to get back into an operational state.&lt;/P&gt;&lt;PRE&gt;at org.apache.hadoop.hive.ql.ppd.ExprWalkerInfo.isCandidate(ExprWalkerInfo.java:165)
        at org.apache.hadoop.hive.ql.ppd.ExprWalkerProcFactory.extractFinalCandidates(ExprWalkerProcFactory.java:330)
        at org.apache.hadoop.hive.ql.ppd.ExprWalkerProcFactory.extractPushdownPreds(ExprWalkerProcFactory.java:299)
        at org.apache.hadoop.hive.ql.ppd.OpProcFactory$DefaultPPD.mergeWithChildrenPred(OpProcFactory.java:746)
        at org.apache.hadoop.hive.ql.ppd.OpProcFactory$FilterPPD.process(OpProcFactory.java:437)
        at org.apache.hadoop.hive.ql.lib.DefaultRuleDispatcher.dispatch(DefaultRuleDispatcher.java:90)
        at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.dispatchAndReturn(DefaultGraphWalker.java:95)
        at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.dispatch(DefaultGraphWalker.java:79)
        at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.walk(DefaultGraphWalker.java:133)
        at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.startWalking(DefaultGraphWalker.java:110)
        at org.apache.hadoop.hive.ql.ppd.PredicatePushDown.transform(PredicatePushDown.java:135)
        at org.apache.hadoop.hive.ql.optimizer.Optimizer.optimize(Optimizer.java:192)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:10189)
        at org.apache.hadoop.hive.ql.parse.CalcitePlanner.analyzeInternal(CalcitePlanner.java:209)
        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:227)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:424)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:308)
        at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1122)
        - locked &amp;lt;0x00000000c0ce9d60&amp;gt; (a java.lang.Object)
        at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1116)
        at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:110)
        at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:181)
        at org.apache.hive.service.cli.operation.Operation.run(Operation.java:257)
        at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:388)
        at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:375)
        at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:274)
        at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:486)
        at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
        at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)


&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:24:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136660#M19034</guid>
      <dc:creator>jpasswaters</dc:creator>
      <dc:date>2016-02-11T09:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer2 - Large User Query caused hang</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136661#M19035</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1354/jpasswaters.html" nodeid="1354"&gt;@Jesse Passwaters&lt;/A&gt;&lt;P&gt;You must setup yarn queues to enable true multi-tenancy "if you don't have queues" so that 1 job wont block the whole cluster. &lt;/P&gt;&lt;P&gt;Need more data from stack space. &lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:26:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136661#M19035</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-11T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer2 - Large User Query caused hang</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136662#M19036</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; - notice the locked thread.   What else would you be looking for from the stack?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:35:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136662#M19036</guid>
      <dc:creator>jpasswaters</dc:creator>
      <dc:date>2016-02-11T09:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer2 - Large User Query caused hang</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136663#M19037</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1354/jpasswaters.html" nodeid="1354"&gt;@Jesse Passwaters&lt;/A&gt; Sorry as  I don't have much insight on that but I do know how to avoid this happening&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_ambari_views_guide/content/ch_using_capacity_scheduler_view.html"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_ambari_views_guide/content/ch_using_capacity_scheduler_view.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Demo: &lt;A href="https://community.hortonworks.com/articles/10912/yarn-queues-and-cs-view-queue-mapping.html" target="_blank"&gt;https://community.hortonworks.com/articles/10912/yarn-queues-and-cs-view-queue-mapping.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:27:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136663#M19037</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-11T10:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer2 - Large User Query caused hang</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136664#M19038</link>
      <description>&lt;P&gt;Thanks, &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;!  I will definitely look into that.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:29:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-Large-User-Query-caused-hang/m-p/136664#M19038</guid>
      <dc:creator>jpasswaters</dc:creator>
      <dc:date>2016-02-11T10:29:44Z</dc:date>
    </item>
  </channel>
</rss>

