<?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 fails with  ExitCodeException exitCode=1: in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137272#M47973</link>
    <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have set the flag to false and used 'hive' user instead of 'hdpuser001'. So it is now reflecting "run as user is hive". However, the Hive query is still failing when the engine is set to Tez. It works perfectly fine with MR. There are not much logs available as well&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2016 22:02:24 GMT</pubDate>
    <dc:creator>raju_ramakrishn</dc:creator>
    <dc:date>2016-12-06T22:02:24Z</dc:date>
    <item>
      <title>Hive fails with  ExitCodeException exitCode=1:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137270#M47971</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to run a simple hive query, and it keeps failing with following error. To make it simple, I have disabled Authentication/Authorization for Hive. Still the same error. It runs as user 'nobody'&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Container exited with a non-zero exit code 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;]], TaskAttempt 3 failed, info=[Container container_e12_1480595328764_0023_01_000005 finished with diagnostics set to [Container failed, exitCode=1. Exception from container-launch.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Container id: container_e12_1480595328764_0023_01_000005&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Exit code: 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Stack trace: ExitCodeException exitCode=1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at org.apache.hadoop.util.Shell.run(Shell.java:456)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor.launchContainer(LinuxContainerExecutor.java:367)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  at java.lang.Thread.run(Thread.java:745)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Shell output: main : command provided 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;main : run as user is nobody&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;main : requested yarn user is hdpuser001&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 18:08:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137270#M47971</guid>
      <dc:creator>raju_ramakrishn</dc:creator>
      <dc:date>2016-12-05T18:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hive fails with  ExitCodeException exitCode=1:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137271#M47972</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3614/rajuramakrishna.html" nodeid="3614"&gt;@hello hadoop&lt;/A&gt;&lt;P&gt;To enable LaunchContainerExecutor to impersonate the actual user, you need to change following property to false.&lt;/P&gt;&lt;P&gt;yarn.nodemanager.linux-container-executor.nonsecure-mode.limit-users&lt;/P&gt;&lt;P&gt;and when you do this, then user "hdpuser001" must exist on all nodes in the cluster, otherwise, part of the job that's running on a node without this user will fail.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 02:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137271#M47972</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-12-06T02:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hive fails with  ExitCodeException exitCode=1:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137272#M47973</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have set the flag to false and used 'hive' user instead of 'hdpuser001'. So it is now reflecting "run as user is hive". However, the Hive query is still failing when the engine is set to Tez. It works perfectly fine with MR. There are not much logs available as well&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 22:02:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137272#M47973</guid>
      <dc:creator>raju_ramakrishn</dc:creator>
      <dc:date>2016-12-06T22:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hive fails with  ExitCodeException exitCode=1:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137273#M47974</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3614/rajuramakrishna.html" nodeid="3614"&gt;@hello hadoop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Logs must be there. Without logs, we can't help. Can you please check log files under /var/log/hive?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 22:40:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137273#M47974</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-12-06T22:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hive fails with  ExitCodeException exitCode=1:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137274#M47975</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; - Thank you. I figured out that the memory settings were wrong for Tez. I fixed it and It works perfectly fine. The following link was helpful as well - &lt;A href="http://www.hadoopadmin.co.in/hive/tez-job-fails-with-vertex-failure-error/" target="_blank"&gt;http://www.hadoopadmin.co.in/hive/tez-job-fails-with-vertex-failure-error/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 23:03:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-fails-with-ExitCodeException-exitCode-1/m-p/137274#M47975</guid>
      <dc:creator>raju_ramakrishn</dc:creator>
      <dc:date>2016-12-06T23:03:45Z</dc:date>
    </item>
  </channel>
</rss>

