<?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: HUE/Oozie hive action errors when running workflow in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/38554#M22417</link>
    <description>&lt;P&gt;I was able to solve this by finding the URL to the Job History Server UI. &amp;nbsp;Stdout and Stderr can be sen here.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2016 03:12:37 GMT</pubDate>
    <dc:creator>tridinger</dc:creator>
    <dc:date>2016-03-11T03:12:37Z</dc:date>
    <item>
      <title>HUE/Oozie hive action errors when running workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/38525#M22416</link>
      <description>&lt;P&gt;Running CDH 5.5.1, Kerberos enabled cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I &amp;nbsp;have a hive .sql script that runs fine interactively. &amp;nbsp;When I try to launch via Oozie using Hive action it errors out. &amp;nbsp;Log file below. &amp;nbsp;There isn't much info in the logs. &amp;nbsp;Any ideas on how to troubleshoot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Full log below:&lt;/P&gt;&lt;PRE&gt;2016-03-10 02:55:22,474 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@:start:] Start action [0000035-160308051341496-oozie-oozi-W@:start:] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
2016-03-10 02:55:22,476 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@:start:] [***0000035-160308051341496-oozie-oozi-W@:start:***]Action status=DONE
2016-03-10 02:55:22,476 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@:start:] [***0000035-160308051341496-oozie-oozi-W@:start:***]Action updated in DB!
2016-03-10 02:55:22,521 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@hive2-7b7a] Start action [0000035-160308051341496-oozie-oozi-W@hive2-7b7a] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
2016-03-10 02:55:25,848 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@hive2-7b7a] checking action, hadoop job ID [job_1457413978008_0096] status [RUNNING]
2016-03-10 02:55:25,849 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@hive2-7b7a] [***0000035-160308051341496-oozie-oozi-W@hive2-7b7a***]Action status=RUNNING
2016-03-10 02:55:25,849 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@hive2-7b7a] [***0000035-160308051341496-oozie-oozi-W@hive2-7b7a***]Action updated in DB!
2016-03-10 02:55:47,945 INFO org.apache.oozie.servlet.CallbackServlet: SERVER[myhive2server.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@hive2-7b7a] callback for action [0000035-160308051341496-oozie-oozi-W@hive2-7b7a]
2016-03-10 02:55:48,076 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@hive2-7b7a] action completed, external ID [job_1457413978008_0096]
2016-03-10 02:55:48,082 WARN org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@hive2-7b7a] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2]
2016-03-10 02:55:48,113 INFO org.apache.oozie.command.wf.ActionEndXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@hive2-7b7a] ERROR is considered as FAILED for SLA
2016-03-10 02:55:48,137 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@Kill] Start action [0000035-160308051341496-oozie-oozi-W@Kill] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
2016-03-10 02:55:48,139 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@Kill] [***0000035-160308051341496-oozie-oozi-W@Kill***]Action status=DONE
2016-03-10 02:55:48,140 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[myhive2server.com] USER[myuser] GROUP[-] TOKEN[] APP[dev-epm-rmt-test-hive] JOB[0000035-160308051341496-oozie-oozi-W] ACTION[0000035-160308051341496-oozie-oozi-W@Kill] [***0000035-160308051341496-oozie-oozi-W@Kill***]Action updated in DB!&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;workflow.xml below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app name="dev-epm-rmt-test-hive" xmlns="uri:oozie:workflow:0.5"&amp;gt;
  &amp;lt;global&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;mapreduce.job.queuename&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;root.epm&amp;lt;/value&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/configuration&amp;gt;
  &amp;lt;/global&amp;gt;
  &amp;lt;credentials&amp;gt;
    &amp;lt;credential name="hive2" type="hive2"&amp;gt;
      &amp;lt;property&amp;gt;
        &amp;lt;name&amp;gt;hive2.jdbc.url&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;jdbc:hive2://myhive2server.com:10000/default&amp;lt;/value&amp;gt;
      &amp;lt;/property&amp;gt;
      &amp;lt;property&amp;gt;
        &amp;lt;name&amp;gt;hive2.server.principal&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;hive/myhive2server.com@MYREALM.ORG&amp;lt;/value&amp;gt;
      &amp;lt;/property&amp;gt;
    &amp;lt;/credential&amp;gt;
  &amp;lt;/credentials&amp;gt;
    &amp;lt;start to="hive2-7b7a"/&amp;gt;
    &amp;lt;kill name="Kill"&amp;gt;
        &amp;lt;message&amp;gt;Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
    &amp;lt;/kill&amp;gt;
    &amp;lt;action name="hive2-7b7a" cred="hive2"&amp;gt;
        &amp;lt;hive2 xmlns="uri:oozie:hive2-action:0.1"&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;jdbc-url&amp;gt;jdbc:hive2://myhive2server.com:10000/default&amp;lt;/jdbc-url&amp;gt;
            &amp;lt;password&amp;gt;hive2&amp;lt;/password&amp;gt;
            &amp;lt;script&amp;gt;/code/contacts.sql&amp;lt;/script&amp;gt;
            &amp;lt;file&amp;gt;/code/contacts.sql#contacts.sql&amp;lt;/file&amp;gt;
        &amp;lt;/hive2&amp;gt;
        &amp;lt;ok to="End"/&amp;gt;
        &amp;lt;error to="Kill"/&amp;gt;
    &amp;lt;/action&amp;gt;
    &amp;lt;end name="End"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;
&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:08:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/38525#M22416</guid>
      <dc:creator>tridinger</dc:creator>
      <dc:date>2022-09-16T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: HUE/Oozie hive action errors when running workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/38554#M22417</link>
      <description>&lt;P&gt;I was able to solve this by finding the URL to the Job History Server UI. &amp;nbsp;Stdout and Stderr can be sen here.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 03:12:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/38554#M22417</guid>
      <dc:creator>tridinger</dc:creator>
      <dc:date>2016-03-11T03:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: HUE/Oozie hive action errors when running workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51669#M22418</link>
      <description>&lt;P&gt;How did you use the url to resolve the issue? Did you identify a root cause and resolution action? I'm experiencing similar error&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 20:36:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51669#M22418</guid>
      <dc:creator>Krog</dc:creator>
      <dc:date>2017-03-01T20:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: HUE/Oozie hive action errors when running workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51671#M22419</link>
      <description>&lt;P&gt;I think there was a bug in 5.5.1 where you could not review standard out and standard err outputs of shell scripts and hive scripts called from an oozie workflow.&amp;nbsp; That was fixed in later versions. The job history was used as a workaround to review the error messages and find root cause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are calling the hive action/script from a shell script instead of a hive action you will also need to do the following.&lt;BR /&gt;1.Use kinit (if running a secure cluster) and kinit to an account that has access to the hive schema.&lt;BR /&gt;2.You must set the mapreduce.job.credentials.binary to $HADOOP_TOKEN_FILE_LOCATION in the hive script;&lt;/P&gt;&lt;P&gt;Sample code below:&lt;/P&gt;&lt;PRE&gt;HIVEQUERY='hive -S -e "SET mapreduce.job.credentials.binary=$HADOOP_TOKEN_FILE_LOCATION;set mapred.job.queue.name=myquename;SELECT count(*) FROM schema.table;"'&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Mar 2017 20:51:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51671#M22419</guid>
      <dc:creator>tridinger</dc:creator>
      <dc:date>2017-03-01T20:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: HUE/Oozie hive action errors when running workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51704#M22420</link>
      <description>Thanks for your response. In my case I'm using a simple HIVE action with no shell script. I'll dig into this some more, hopefully I can find the root cause in my case. I'll report if I find anything that would be useful to a large audience</description>
      <pubDate>Thu, 02 Mar 2017 16:39:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51704#M22420</guid>
      <dc:creator>Krog</dc:creator>
      <dc:date>2017-03-02T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: HUE/Oozie hive action errors when running workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51709#M22421</link>
      <description>&lt;P&gt;One last thing worth mentioning.&amp;nbsp; If you are using a hive action, you will need to ensure that you have the HiveServer2 URL identified on the properties tab of Hue/oozie for the action.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g., jdbc:hive2://&amp;lt;HIVE_SERVER_HOSTNAME&amp;gt;:10000/default&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 17:39:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51709#M22421</guid>
      <dc:creator>tridinger</dc:creator>
      <dc:date>2017-03-02T17:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: HUE/Oozie hive action errors when running workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51722#M22422</link>
      <description>You were right on point. I didn't have this property specified and when I initially added it I forgot to save it. Got it working. Gracias!!!</description>
      <pubDate>Thu, 02 Mar 2017 21:10:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Oozie-hive-action-errors-when-running-workflow/m-p/51722#M22422</guid>
      <dc:creator>Krog</dc:creator>
      <dc:date>2017-03-02T21:10:09Z</dc:date>
    </item>
  </channel>
</rss>

