<?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: How to take daily snapshots of data through oozie in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146377#M28224</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt;&lt;P&gt;Can you do date specific output directory using &amp;lt;prepare&amp;gt; and use that directory for storing your outputs?&lt;/P&gt;&lt;P&gt;Note sure if this will help in your case, just wanted to let you know &lt;/P&gt;</description>
    <pubDate>Sat, 14 May 2016 01:27:29 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2016-05-14T01:27:29Z</dc:date>
    <item>
      <title>How to take daily snapshots of data through oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146375#M28222</link>
      <description>&lt;P&gt;I have a coordinator running and have my first import successful but as soon as it runs for the second time, it throws file already exists exception. &lt;/P&gt;&lt;P&gt;My question is how do I workaround this?&lt;/P&gt;&lt;P&gt;1. This isn't incremental import but a daily import of all data. &lt;/P&gt;&lt;P&gt;2. I do not want to delete it through &amp;lt;prepare&amp;gt; before I have a fresh copy of the import.(obviously because I would not want to lose what I have before I know I have a fresh and updated copy of the data)&lt;/P&gt;&lt;P&gt;3.  I have --target-dir specified in the imports (Just in case that makes any diff. )&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 18:07:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146375#M28222</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-13T18:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to take daily snapshots of data through oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146376#M28223</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt; this may or may not help depending on your exact scenario, however I've done something similar before by using Falcon (which is driving Oozie underneath) to do exactly this.&lt;/P&gt;&lt;P&gt;Have a look at &lt;A target="_blank" href="https://github.com/apache/falcon/tree/master/addons/hdfs-snapshot-mirroring"&gt;https://github.com/apache/falcon/tree/master/addons/hdfs-snapshot-mirroring&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The reason this is nice is that it provides built in functionality to handle:&lt;/P&gt;&lt;PRE&gt;* Create snapshots in source directory
* Copy this directory between HDFS clusters
* Create snapshot in target directory
* Handle snapshot retention in source and target directories&lt;/PRE&gt;&lt;P&gt;It's honestly going to be much easier than writing that all yourself within Oozie, you don't need to use it to mirror those snapshots between clusters, you can use it within a single cluster. Hope that helps!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 18:36:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146376#M28223</guid>
      <dc:creator>drussell</dc:creator>
      <dc:date>2016-05-13T18:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to take daily snapshots of data through oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146377#M28224</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt;&lt;P&gt;Can you do date specific output directory using &amp;lt;prepare&amp;gt; and use that directory for storing your outputs?&lt;/P&gt;&lt;P&gt;Note sure if this will help in your case, just wanted to let you know &lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 01:27:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146377#M28224</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-05-14T01:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to take daily snapshots of data through oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146378#M28225</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt; You should suffix your target-dir name with date (example - rather than naming target-dir emp_snapshot, name it emp_snapshot_05132016). And then on next run, once you have updated copy of data, remove old one. It should be straight-forward. Additional benefit would be that you will know from name when last snapshot completed and was imported.&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 01:38:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-take-daily-snapshots-of-data-through-oozie/m-p/146378#M28225</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2016-05-14T01:38:36Z</dc:date>
    </item>
  </channel>
</rss>

