<?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 Execute hive hql file from oozie shell action in Ambari in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Execute-hive-hql-file-from-oozie-shell-action-in-Ambari/m-p/326886#M229962</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where I need to schedule an oozie work flow using shell action. Shell action is using a shell script which in turn will be calling a hql file which is available on HDFS location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to call that hql file from the shell script which I am using in shell action.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know using beeline - f parameters to use to call local files but can you please guide me to call a file which is on HDFS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help/suggestions will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wasim&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 01:57:55 GMT</pubDate>
    <dc:creator>wasimakram</dc:creator>
    <dc:date>2021-10-08T01:57:55Z</dc:date>
    <item>
      <title>Execute hive hql file from oozie shell action in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Execute-hive-hql-file-from-oozie-shell-action-in-Ambari/m-p/326886#M229962</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where I need to schedule an oozie work flow using shell action. Shell action is using a shell script which in turn will be calling a hql file which is available on HDFS location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to call that hql file from the shell script which I am using in shell action.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know using beeline - f parameters to use to call local files but can you please guide me to call a file which is on HDFS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help/suggestions will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wasim&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 01:57:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Execute-hive-hql-file-from-oozie-shell-action-in-Ambari/m-p/326886#M229962</guid>
      <dc:creator>wasimakram</dc:creator>
      <dc:date>2021-10-08T01:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Execute hive hql file from oozie shell action in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Execute-hive-hql-file-from-oozie-shell-action-in-Ambari/m-p/327783#M230149</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/36362"&gt;@wasimakram&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you facing any issues/errors while calling the hive script ? can you share your workflow.xml file to have a look?&lt;/P&gt;&lt;P&gt;Below is the simple example for it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;workflow-app xmlns = "uri:oozie:workflow:0.4" name = "simple-Workflow"&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;start to = "fork_node" /&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fork name = "fork_node"&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;path start = "Create_External_Table"/&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;path start = "Create_orc_Table"/&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/fork&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;action name = "Create_External_Table"&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hive xmlns = "uri:oozie:hive-action:0.4"&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;job-tracker&amp;gt;xyz.com:8088&amp;lt;/job-tracker&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name-node&amp;gt;hdfs://rootname&amp;lt;/name-node&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script&amp;gt;hdfs_path_of_script/external.hive&amp;lt;/script&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/hive&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;lt;ok to = "end" /&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;error to = "kill_job" /&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;kill name = "kill_job"&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;message&amp;gt;Job failed&amp;lt;/message&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/kill&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;end name = "end" /&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;/workflow-app&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chethan YM&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 06:42:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Execute-hive-hql-file-from-oozie-shell-action-in-Ambari/m-p/327783#M230149</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2021-10-16T06:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Execute hive hql file from oozie shell action in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Execute-hive-hql-file-from-oozie-shell-action-in-Ambari/m-p/328838#M230351</link>
      <description>&lt;P&gt;Thank you all for your responses. This issue was because of credential problem and it's resolved now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 10:57:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Execute-hive-hql-file-from-oozie-shell-action-in-Ambari/m-p/328838#M230351</guid>
      <dc:creator>wasimakram</dc:creator>
      <dc:date>2021-10-26T10:57:47Z</dc:date>
    </item>
  </channel>
</rss>

