<?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 Re: Hive query failed over JDBC. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153924#M36174</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11177/girish02c.html" nodeid="11177"&gt;@Girish Chaudhari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's hard to tell what the root cause is based on the above error.&lt;/P&gt;&lt;P&gt;Can you provide yarn application log? You can get it by running 'yarn logs -applicationId [your application_id]'&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2016 06:17:55 GMT</pubDate>
    <dc:creator>tsaito</dc:creator>
    <dc:date>2016-07-28T06:17:55Z</dc:date>
    <item>
      <title>Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153923#M36173</link>
      <description>&lt;P&gt;I am working on hive JDBC client.I am able to run normal queries like select * from table, show database etc. But when I am trying to run queries like insert into ,select count(*)  it simply fails with following exception.&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask
at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:282)
at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:378)
at TablePerformance.countItems(TablePerformance.java:51)
at TablePerformance.main(TablePerformance.java:63)&lt;/P&gt;&lt;P&gt;I have checked hive server logs and it also shows same error message as above. Is there any way I can set hive.execution.engine over jdbc connectivity ?&lt;/P&gt;&lt;P&gt;Any kind of help  would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 06:04:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153923#M36173</guid>
      <dc:creator>girish02c</dc:creator>
      <dc:date>2016-07-28T06:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153924#M36174</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11177/girish02c.html" nodeid="11177"&gt;@Girish Chaudhari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's hard to tell what the root cause is based on the above error.&lt;/P&gt;&lt;P&gt;Can you provide yarn application log? You can get it by running 'yarn logs -applicationId [your application_id]'&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 06:17:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153924#M36174</guid>
      <dc:creator>tsaito</dc:creator>
      <dc:date>2016-07-28T06:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153925#M36175</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/333/tsaito.html" nodeid="333"&gt;@Takahiko Saito&lt;/A&gt; Stack trace just after jdbc query failure.&lt;/P&gt;&lt;PRE&gt;Container exited with a non-zero exit code 127
Failing this attempt. Failing the application.
2016-07-28 00:11:22,769 INFO  rmapp.RMAppImpl (RMAppImpl.java:handle(767)) - application_1466711437570_0051 State change from FINAL_SAVING to FAILED
2016-07-28 00:11:22,769 WARN  resourcemanager.RMAuditLogger (RMAuditLogger.java:logFailure(323)) - USER="girish"        OPERATION=Application Finished - Failed TARGET=RMAppManager     RESULT=FAILURE  DESCRIPTION=App failed with state: FAILED    PERMISSIONS=Application application_1466711437570_0051 failed 2 times due to AM Container for appattempt_1466711437570_0051_000002 exited with  exitCode: 127
For more detailed output, check application tracking page then click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_e02_1466711437570_0051_02_000001
Exit code: 127
Exception message: /bin/bash: /mnt/resource/usercache/girish/appcache/application_1466711437570_0051/container_e02_1466711437570_0051_02_000001/default_container_executor_session.sh: No such file or directory


Stack trace: ExitCodeException exitCode=127: /bin/bash: /mnt/resource/usercache/girish/appcache/application_1466711437570_0051/container_e02_1466711437570_0051_02_000001/default_container_executor_session.sh: No such file or directory


        at org.apache.hadoop.util.Shell.runCommand(Shell.java:576)
        at org.apache.hadoop.util.Shell.run(Shell.java:487)
        at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:753)
        at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)
        at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:303)
        at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        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)




Container exited with a non-zero exit code 127
Failing this attempt. Failing the application.  APPID=application_1466711437570_0051
2016-07-28 00:11:22,769 INFO  capacity.ParentQueue (ParentQueue.java:removeApplication(372)) - Application removed - appId: application_1466711437570_0051 user: "girish" leaf-queue of parent: root #applications: 0
2016-07-28 00:11:23,446 INFO  resourcemanager.RMAuditLogger (RMAuditLogger.java:logSuccess(170)) - USER="girish"        IP=10.0.0.5     OPERATION=Kill Application Request      TARGET=ClientRMService  RESULT=SUCCESS  APPID=application_1466711437570_0051 CALLERCONTEXT=HIVE_SSN_ID:d8a476e9-84c4-4633-a980-3f8a9dd7dac8

&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:34:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153925#M36175</guid>
      <dc:creator>girish02c</dc:creator>
      <dc:date>2016-07-28T07:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153926#M36176</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11177/girish02c.html" nodeid="11177"&gt;@Girish Chaudhari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for the stack trace. Now we know why it failed. It's because the container cannot be launched because default_container_executor_session.sh doesn't exist at /mnt/resource/usercache/girish/appcache/application_1466711437570_0051/container_e02_1466711437570_0051_02_000001&lt;/P&gt;&lt;P&gt;As to why this happened, that still needs to be investigated. Will update if I find something.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 05:54:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153926#M36176</guid>
      <dc:creator>tsaito</dc:creator>
      <dc:date>2016-07-29T05:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153927#M36177</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11177/girish02c.html" nodeid="11177"&gt;@Girish Chaudhari&lt;/A&gt; How much memory do you have on your cluster (on each node)?&lt;/P&gt;&lt;P&gt;A simple select statement is simply able to stream results back to JDBC client. count() however, needs to work and requires memory and I am just wondering what is assigned here?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 13:17:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153927#M36177</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-07-29T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153928#M36178</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt;  I am able to run same query through hive view and hive cli but not through jdbc .&lt;/P&gt;&lt;P&gt;
Cluster configuration is as below:&lt;/P&gt;&lt;PRE&gt;Name node and Secondary node (8 Core / 28 GB RAM each) 
3 Data Nodes (8 Core / 28 GB RAM each)&lt;/PRE&gt;&lt;P&gt;
I tried to set hive.execution.engine=tez by appending it to jdbc connect url but it doesn't work. &lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 13:31:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153928#M36178</guid>
      <dc:creator>girish02c</dc:creator>
      <dc:date>2016-07-29T13:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153929#M36179</link>
      <description>&lt;P&gt;I solved it by passing the below connection objects with my user name. &lt;/P&gt;&lt;P&gt;con = DriverManager.getConnection("jdbc:hive2://host:10000/default?hive.execution.engine=tez", "&amp;lt;user-name&amp;gt;","");&lt;/P&gt;&lt;P&gt;Thanks you all of you for your help and advice.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2016 02:42:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153929#M36179</guid>
      <dc:creator>girish02c</dc:creator>
      <dc:date>2016-07-30T02:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153930#M36180</link>
      <description>&lt;P&gt;When you did hive.execution.engine=tez&lt;/P&gt;&lt;P&gt;After that, you restarted your cluster?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 03:15:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153930#M36180</guid>
      <dc:creator>ajkr195</dc:creator>
      <dc:date>2017-12-09T03:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153931#M36181</link>
      <description>&lt;P&gt;HI Guys I had the same problem but in my case the tez.queue.name was missing in the JDBC URL  and that prevented the writes.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 02:43:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153931#M36181</guid>
      <dc:creator>viswan_anoop</dc:creator>
      <dc:date>2018-01-25T02:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153932#M36182</link>
      <description>&lt;P&gt;Dear &lt;A rel="user" href="https://community.cloudera.com/users/11177/girish02c.html" nodeid="11177"&gt;@Girish Chaudhari&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately, I have faced this issue as well, but I could not understand the BEST ANSWER submitted by you. If it is possible, please help me.&lt;/P&gt;&lt;P&gt;thanks a million,&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 15:41:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153932#M36182</guid>
      <dc:creator>ali_mohammadi</dc:creator>
      <dc:date>2018-03-03T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153933#M36183</link>
      <description>&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;Did you tried to pass &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;hive.execution.engine=tez" &lt;/STRONG&gt;as session config property in JDBC connection URL. Please try that and let me if that works.&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;PRE&gt;con = DriverManager.getConnection("jdbc:hive2://host:10000/default?hive.execution.engine=tez")&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Mar 2018 02:44:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153933#M36183</guid>
      <dc:creator>girish02c</dc:creator>
      <dc:date>2018-03-06T02:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153934#M36184</link>
      <description>&lt;P&gt;I had also been facing that issue in hive, but I solved by setting  "use.hive.interactive.mode" to true and restart the Hive View to run in llap mode.&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 13:34:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153934#M36184</guid>
      <dc:creator>ali_mohammadi</dc:creator>
      <dc:date>2018-03-07T13:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hive query failed over JDBC.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153935#M36185</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am facing the same issue and not able to fix.&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:50:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-query-failed-over-JDBC/m-p/153935#M36185</guid>
      <dc:creator>debananda_sahoo</dc:creator>
      <dc:date>2018-04-09T20:50:04Z</dc:date>
    </item>
  </channel>
</rss>

