<?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: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12] in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107161#M33541</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2833/hodamoradi2014.html" nodeid="2833"&gt;@hoda moradi&lt;/A&gt;&lt;P&gt;You will have to do some research but you might be missing a jar file. Are you sure you have jdbc jar files in classpath?&lt;/P&gt;&lt;P&gt;See the following two links.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/19396/oozie-hive-action-errors-out-with-exit-code-12.html" target="_blank"&gt;https://community.hortonworks.com/questions/19396/oozie-hive-action-errors-out-with-exit-code-12.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html" target="_blank"&gt;https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2016 03:41:08 GMT</pubDate>
    <dc:creator>mqureshi</dc:creator>
    <dc:date>2016-07-01T03:41:08Z</dc:date>
    <item>
      <title>Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107158#M33538</link>
      <description>&lt;P&gt; When I try to run a hive action I get error number E0729 Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12] with nothing more in log file. How fix this?&lt;/P&gt;&lt;P&gt;log:&lt;/P&gt;&lt;PRE&gt;2016-06-30 18:33:37,930  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@:start:] Start action [0000011-160630143249353-oozie-oozi-W@:start:] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
2016-06-30 18:33:37,934  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@:start:] [***0000011-160630143249353-oozie-oozi-W@:start:***]Action status=DONE
2016-06-30 18:33:37,934  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@:start:] [***0000011-160630143249353-oozie-oozi-W@:start:***]Action updated in DB!
2016-06-30 18:33:38,013  INFO WorkflowNotificationXCommand:520 - SERVER[sandbox.hortonworks.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[] No Notification URL is defined. Therefore nothing to notify for job 0000011-160630143249353-oozie-oozi-W
2016-06-30 18:33:38,014  INFO WorkflowNotificationXCommand:520 - SERVER[sandbox.hortonworks.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@:start:] No Notification URL is defined. Therefore nothing to notify for job 0000011-160630143249353-oozie-oozi-W@:start:
2016-06-30 18:33:38,042  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] Start action [0000011-160630143249353-oozie-oozi-W@hive-node] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
2016-06-30 18:33:49,999  INFO HiveActionExecutor:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] checking action, hadoop job ID [job_1467297249897_0020] status [RUNNING]
2016-06-30 18:33:50,002  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] [***0000011-160630143249353-oozie-oozi-W@hive-node***]Action status=RUNNING
2016-06-30 18:33:50,002  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] [***0000011-160630143249353-oozie-oozi-W@hive-node***]Action updated in DB!
2016-06-30 18:33:50,017  INFO WorkflowNotificationXCommand:520 - SERVER[sandbox.hortonworks.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] No Notification URL is defined. Therefore nothing to notify for job 0000011-160630143249353-oozie-oozi-W@hive-node
2016-06-30 18:38:09,496  INFO HiveActionExecutor:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] action completed, external ID [job_1467297249897_0020]
2016-06-30 18:38:09,783  WARN HiveActionExecutor:523 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]
2016-06-30 18:38:10,580  INFO ActionEndXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] ERROR is considered as FAILED for SLA
2016-06-30 18:38:10,984  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@fail] Start action [0000011-160630143249353-oozie-oozi-W@fail] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
2016-06-30 18:38:11,002  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@fail] [***0000011-160630143249353-oozie-oozi-W@fail***]Action status=DONE
2016-06-30 18:38:11,003  INFO ActionStartXCommand:520 - SERVER[sandbox.hortonworks.com] USER[ambari-qa] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@fail] [***0000011-160630143249353-oozie-oozi-W@fail***]Action updated in DB!
2016-06-30 18:38:11,506  INFO WorkflowNotificationXCommand:520 - SERVER[sandbox.hortonworks.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@fail] No Notification URL is defined. Therefore nothing to notify for job 0000011-160630143249353-oozie-oozi-W@fail
2016-06-30 18:38:11,506  INFO WorkflowNotificationXCommand:520 - SERVER[sandbox.hortonworks.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[] No Notification URL is defined. Therefore nothing to notify for job 0000011-160630143249353-oozie-oozi-W
2016-06-30 18:38:11,506  INFO WorkflowNotificationXCommand:520 - SERVER[sandbox.hortonworks.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000011-160630143249353-oozie-oozi-W] ACTION[0000011-160630143249353-oozie-oozi-W@hive-node] No Notification URL is defined. Therefore nothing to notify for job 0000011-160630143249353-oozie-oozi-W@hive-node&lt;/PRE&gt;&lt;P&gt;job.properties&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=sandbox.hortonworks.com:8050
queueName=default
examplesRoot=examples
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/apps/hive&lt;/PRE&gt;&lt;P&gt; my Workflow is &lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app xmlns="uri:oozie:workflow:0.2" name="hive-wf"&amp;gt;
    &amp;lt;start to="hive-node"/&amp;gt;
	 &amp;lt;action name="hive-node"&amp;gt;
        &amp;lt;hive xmlns="uri:oozie:hive-action:0.2"&amp;gt;   
	 &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
           &amp;lt;prepare&amp;gt;
                &amp;lt;delete path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data/hive"/&amp;gt;
                &amp;lt;mkdir path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data"/&amp;gt;
            &amp;lt;/prepare&amp;gt;
 	    &amp;lt;job-xml&amp;gt;hive-site.xml&amp;lt;/job-xml&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/configuration&amp;gt;
            &amp;lt;script&amp;gt;script.q&amp;lt;/script&amp;gt;
            &amp;lt;param&amp;gt;INPUT=/user/${wf:user()}/${examplesRoot}/input-data/table&amp;lt;/param&amp;gt;
            &amp;lt;param&amp;gt;OUTPUT=/user/${wf:user()}/${examplesRoot}/output-data/hive&amp;lt;/param&amp;gt;
        &amp;lt;/hive&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="fail"/&amp;gt;
    &amp;lt;/action&amp;gt;
    &amp;lt;kill name="fail"&amp;gt;
        &amp;lt;message&amp;gt;Hive failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
    &amp;lt;/kill&amp;gt;
    &amp;lt;end name="end"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jul 2016 01:36:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107158#M33538</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-01T01:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107159#M33539</link>
      <description>&lt;P&gt;Can you give the complete output of the execution. You can find log in Oozie UI for this job.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:12:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107159#M33539</guid>
      <dc:creator>manish1</dc:creator>
      <dc:date>2016-07-01T03:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107160#M33540</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/88/manish.html" nodeid="88"&gt;@Manish Gupta&lt;/A&gt;The weird thing is it creates the table in hive then show this error. I add the complete log in the question. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:13:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107160#M33540</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-01T03:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107161#M33541</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2833/hodamoradi2014.html" nodeid="2833"&gt;@hoda moradi&lt;/A&gt;&lt;P&gt;You will have to do some research but you might be missing a jar file. Are you sure you have jdbc jar files in classpath?&lt;/P&gt;&lt;P&gt;See the following two links.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/19396/oozie-hive-action-errors-out-with-exit-code-12.html" target="_blank"&gt;https://community.hortonworks.com/questions/19396/oozie-hive-action-errors-out-with-exit-code-12.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html" target="_blank"&gt;https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:41:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107161#M33541</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-07-01T03:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107162#M33542</link>
      <description>&lt;P&gt;I do not have jdbc. jar file in the /&lt;A href="http://192.168.60.128:8080/views/FILES/1.0.0/Files/#/?path=%2Fuser"&gt;user&lt;/A&gt;/&lt;A href="http://192.168.60.128:8080/views/FILES/1.0.0/Files/#/?path=%2Fuser%2Foozie"&gt;oozie&lt;/A&gt;/&lt;A href="http://192.168.60.128:8080/views/FILES/1.0.0/Files/#/?path=%2Fuser%2Foozie%2Fshare"&gt;share&lt;/A&gt;/&lt;A href="http://192.168.60.128:8080/views/FILES/1.0.0/Files/#/?path=%2Fuser%2Foozie%2Fshare%2Flib"&gt;lib&lt;/A&gt;/&lt;A href="http://192.168.60.128:8080/views/FILES/1.0.0/Files/#/?path=%2Fuser%2Foozie%2Fshare%2Flib%2Flib_20151027144433"&gt;lib_20151027144433&lt;/A&gt; where can I download the right jar file? &lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:47:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107162#M33542</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-01T03:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107163#M33543</link>
      <description>&lt;P&gt;Hive jdbc jar should be at the following location. You can copy it from here.

/usr/hdp/current/hive-client/lib/hive-jdbc.jar&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2016 02:36:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107163#M33543</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-07-02T02:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107164#M33544</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 add the jar file but I still get the same error. Do you have any other suggestion?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 00:01:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107164#M33544</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-07T00:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107165#M33545</link>
      <description>&lt;P&gt;Hi @hoda, how are you? &lt;/P&gt;&lt;P&gt;Have you found some solution? &lt;/P&gt;&lt;P&gt;
I'm facing same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:58:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107165#M33545</guid>
      <dc:creator>ThiagoSantiago</dc:creator>
      <dc:date>2016-07-28T08:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107166#M33546</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11059/tsantiago.html" nodeid="11059"&gt;@Thiago&lt;/A&gt; I did! It took me one week but finally I figure it out! I will post it as an answer. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 22:36:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107166#M33546</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-28T22:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12]</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107167#M33547</link>
      <description>&lt;P&gt;I figure it out. I post the answer for others with same issue. The problem was missing atlas jar files.Try to copy all the jar file in  /usr/hdp/2.3.2.0-2950/atlas/hook/hive/* directory into lib folder at job.properties level.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 22:37:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Main-class-org-apache-oozie-action-hadoop-HiveMain-exit-code/m-p/107167#M33547</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-28T22:37:59Z</dc:date>
    </item>
  </channel>
</rss>

