<?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 runnig script pig in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/runnig-script-pig/m-p/156470#M28909</link>
    <description>&lt;P&gt;I have a pig script which I want to automatically execute every week  or every  day on a hadoop cluster.  how Can I do this t?what is the best solution to  do this  ? please help&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2016 15:46:30 GMT</pubDate>
    <dc:creator>nejmhadjmbarek</dc:creator>
    <dc:date>2016-05-19T15:46:30Z</dc:date>
    <item>
      <title>runnig script pig</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/runnig-script-pig/m-p/156470#M28909</link>
      <description>&lt;P&gt;I have a pig script which I want to automatically execute every week  or every  day on a hadoop cluster.  how Can I do this t?what is the best solution to  do this  ? please help&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 15:46:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/runnig-script-pig/m-p/156470#M28909</guid>
      <dc:creator>nejmhadjmbarek</dc:creator>
      <dc:date>2016-05-19T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: runnig script pig</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/runnig-script-pig/m-p/156471#M28910</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2068/nejmhadjmbarek.html" nodeid="2068"&gt;@nejm hadjmbarek&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You can achieve this in two ways.&lt;/P&gt;&lt;P&gt;1. Create a wrapper shell script and call "pig &amp;lt;pig script path&amp;gt;" inside it. After that you can create an Unix cron entry to schedule it as per your requirement.&lt;/P&gt;&lt;P&gt;2. Another way is through Oozie scheduler, for that you can either create a pig action and along with recurring a coordinator service(see below link) or you can also create an Oozie shell action and call the same wrapper shell script inside your Oozie shell action( point 1).&lt;/P&gt;&lt;P&gt;&lt;A href="http://rogerhosto.com/apache-oozie-shell-script-example/" target="_blank"&gt;http://rogerhosto.com/apache-oozie-shell-script-example/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://oozie.apache.org/docs/3.2.0-incubating/WorkflowFunctionalSpec.html#a3.2.3_Pig_Action" target="_blank"&gt;https://oozie.apache.org/docs/3.2.0-incubating/WorkflowFunctionalSpec.html#a3.2.3_Pig_Action&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blog.cloudera.com/blog/2013/01/how-to-schedule-recurring-hadoop-jobs-with-apache-oozie/" target="_blank"&gt;http://blog.cloudera.com/blog/2013/01/how-to-schedule-recurring-hadoop-jobs-with-apache-oozie/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 16:23:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/runnig-script-pig/m-p/156471#M28910</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-19T16:23:25Z</dc:date>
    </item>
  </channel>
</rss>

