falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pall...@apache.org
Subject svn commit: r1730448 [3/12] - in /falcon/site/0.9: ./ css/ falconcli/ images/ images/logos/ images/profiles/ img/ js/ restapi/
Date Mon, 15 Feb 2016 05:36:58 GMT
Added: falcon/site/0.9/FalconDocumentation.html
URL: http://svn.apache.org/viewvc/falcon/site/0.9/FalconDocumentation.html?rev=1730448&view=auto
==============================================================================
--- falcon/site/0.9/FalconDocumentation.html (added)
+++ falcon/site/0.9/FalconDocumentation.html Mon Feb 15 05:36:56 2016
@@ -0,0 +1,664 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-02-09
+ | Rendered using Apache Maven Fluido Skin 1.3.0
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160209" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Falcon - Contents</title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" src="./js/apache-maven-fluido-1.3.0.min.js"></script>
+
+                          
+        
+<script type="text/javascript">$( document ).ready( function() { $( '.carousel' ).carousel( { interval: 3500 } ) } );</script>
+          
+            </head>
+        <body class="topBarDisabled">
+          
+                        
+                    
+    
+        <div class="container">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                                                                                                <img src="images/falcon-logo.png"  alt="Apache Falcon" width="200px" height="45px"/>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="index.html" title="Falcon">
+        Falcon</a>
+        </li>
+      <li class="divider ">/</li>
+        <li class="">Contents</li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right">Last Published: 2016-02-09</li> <li class="divider pull-right">|</li>
+              <li id="projectVersion" class="pull-right">Version: 0.9</li>
+            
+                            </ul>
+      </div>
+
+      
+                
+        <div id="bodyColumn" >
+                                  
+            <div class="section">
+<h3>Contents<a name="Contents"></a></h3>
+<p></p>
+<ul>
+<li><a href="#Architecture">Architecture</a></li>
+<li><a href="#Control_flow">Control flow</a></li>
+<li><a href="#Modes_Of_Deployment">Modes Of Deployment</a></li>
+<li><a href="#Entity_Management_actions">Entity Management actions</a></li>
+<li><a href="#Instance_Management_actions">Instance Management actions</a></li>
+<li><a href="#Retention">Retention</a></li>
+<li><a href="#Replication">Replication</a></li>
+<li><a href="#Cross_entity_validations">Cross entity validations</a></li>
+<li><a href="#Updating_process_and_feed_definition">Updating process and feed definition</a></li>
+<li><a href="#Handling_late_input_data">Handling late input data</a></li>
+<li><a href="#Idempotency">Idempotency</a></li>
+<li><a href="#Falcon_EL_Expressions">Falcon EL Expressions</a></li>
+<li><a href="#Lineage">Lineage</a></li>
+<li><a href="#Security">Security</a></li>
+<li><a href="#Recipes">Recipes</a></li>
+<li><a href="#Monitoring">Monitoring</a></li>
+<li><a href="#Email_Notification">Email Notification</a></li>
+<li><a href="#Backwards_Compatibility">Backwards Compatibility Instructions</a></li>
+<li><a href="#Proxyuser_support">Proxyuser support</a></li>
+<li><a href="#ImportExport">Data Import and Export</a></li></ul></div>
+<div class="section">
+<h3>Architecture<a name="Architecture"></a></h3></div>
+<div class="section">
+<h4>Introduction<a name="Introduction"></a></h4>
+<p>Falcon is a feed and process management platform over hadoop. Falcon essentially transforms user's feed and process configurations into repeated actions through a standard workflow engine. Falcon by itself doesn't do any heavy lifting. All the functions and workflow state management requirements are delegated to the workflow scheduler. The only thing that Falcon maintains is the dependencies and relationship between these entities. This is adequate to provide integrated and seamless experience to the developers using the falcon platform.</p></div>
+<div class="section">
+<h4>Falcon Architecture - Overview<a name="Falcon_Architecture_-_Overview"></a></h4>
+<p><img src="Architecture.png" alt="" /></p></div>
+<div class="section">
+<h4>Scheduler<a name="Scheduler"></a></h4>
+<p>Falcon system has picked Oozie as the default scheduler. However the system is open for integration with other schedulers. Lot of the data processing in hadoop requires scheduling to be based on both data availability as well as time. Oozie currently supports these capabilities off the shelf and hence the choice.</p>
+<p>While the use of Oozie works reasonably well, there are scenarios where Oozie scheduling is proving to be a limiting factor. In its current form, Falcon relies on Oozie for both scheduling and for workflow execution, due to which the scheduling is limited to time based/cron based scheduling with additional gating conditions on data availability. Also, this imposes restrictions on datasets being periodic/cyclic in nature. In order to offer better scheduling capabilities, Falcon comes with its own native scheduler. Refer to <a href="./FalconNativeScheduler.html">Falcon Native Scheduler</a> for details.</p></div>
+<div class="section">
+<h4>Control flow<a name="Control_flow"></a></h4>
+<p>Though the actual responsibility of the workflow is with the scheduler (Oozie), Falcon remains in the execution path, by subscribing to messages that each of the workflow may generate. When Falcon generates a workflow in Oozie, it does so, after instrumenting the workflow with additional steps which includes messaging via JMS. Falcon system itself subscribes to these control messages and can perform actions such as retries, handling late input arrival etc.</p></div>
+<div class="section">
+<h5>Feed Schedule flow<a name="Feed_Schedule_flow"></a></h5>
+<p><img src="FeedSchedule.png" alt="" /></p></div>
+<div class="section">
+<h5>Process Schedule flow<a name="Process_Schedule_flow"></a></h5>
+<p><img src="ProcessSchedule.png" alt="" /></p></div>
+<div class="section">
+<h3>Modes Of Deployment<a name="Modes_Of_Deployment"></a></h3>
+<p>There are two basic components of Falcon set up. Falcon Prism and Falcon Server. As the name suggests Falcon Prism splits the request it gets to the Falcon Servers. More details below:</p></div>
+<div class="section">
+<h4>Stand Alone Mode<a name="Stand_Alone_Mode"></a></h4>
+<p>Stand alone mode is useful when the hadoop jobs and relevant data processing involves only one hadoop cluster. In this mode there is a single Falcon server that contacts Oozie to schedule jobs on Hadoop. All the process/feed requests like submit, schedule, suspend, kill etc. are sent to this server. For running falcon in this mode one should use the falcon which has been built using standalone option.</p></div>
+<div class="section">
+<h4>Distributed Mode<a name="Distributed_Mode"></a></h4>
+<p>Distributed mode is for multiple (colos) instances of hadoop clusters, and multiple workflow schedulers to handle them. In this mode falcon has 2 components: Prism and Server(s). Both Prism and servers have their own setup (runtime and startup properties) and their own config locations. In this mode Prism acts as a contact point for Falcon servers. While all commands are available through Prism, only read and instance api's are available through Server. Below are the requests that can be sent to each of these:</p>
+<p>Prism: submit, schedule, submitAndSchedule, Suspend, Resume, Kill, instance management  Server: schedule, suspend, resume, instance management</p>
+<p>As observed above submit and kill are kept exclusively as Prism operations to keep all the config stores in sync and to support feature of idempotency. Request may also be sent from prism but directed to a specific server using the option &quot;-colo&quot; from CLI or append the same in web request, if using API.</p>
+<p>When a cluster is submitted it is by default sent to all the servers configured in the prism. When is feed is SUBMIT / SCHEDULED request is only sent to the servers specified in the feed / process definitions. Servers are mentioned in the feed / process via CLUSTER tags in xml definition.</p>
+<p>Communication between prism and falcon server (for submit/update entity function) is secured over <a class="externalLink" href="https://">https://</a> using a client-certificate based auth. Prism server needs to present a valid client certificate for the falcon server to accept the action.</p>
+<p>Startup property file in both falcon &amp; prism server need to be configured with the following configuration if TLS is enabled. * keystore.file * keystore.password</p></div>
+<div class="section">
+<h5>Prism Setup<a name="Prism_Setup"></a></h5>
+<p><img src="PrismSetup.png" alt="" /></p></div>
+<div class="section">
+<h4>Configuration Store<a name="Configuration_Store"></a></h4>
+<p>Configuration store is file system based store that the Falcon system maintains where the entity definitions are stored. File System used for the configuration store can either be a local file system or HDFS file system. It is recommended that the store be maintained outside of the system where Falcon is deployed. This is needed for handling issues relating to disk failures or other permanent failures of the system where Falcon is deployed. Configuration store also maintains an archive location where prior versions of the configuration or deleted configurations are maintained. They are never accessed by the Falcon system and they merely serve to track historical changes to the entity definitions.</p></div>
+<div class="section">
+<h4>Atomic Actions<a name="Atomic_Actions"></a></h4>
+<p>Often times when Falcon performs entity management actions, it may need to do several individual actions. If one of the action were to fail, then the system could be in an inconsistent state. To avoid this, all individual operations performed are recorded into a transaction journal. This journal is then used to undo the overall user action. In some cases, it is not possible to undo the action. In such cases, Falcon attempts to keep the system in an consistent state.</p></div>
+<div class="section">
+<h4>Storage<a name="Storage"></a></h4>
+<p>Falcon introduces a new abstraction to encapsulate the storage for a given feed which can either be expressed as a path on the file system, File System Storage or a table in a catalog such as Hive, Catalog Storage.</p>
+<div class="source">
+<pre>
+    &lt;xs:choice minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;&gt;
+        &lt;xs:element type=&quot;locations&quot; name=&quot;locations&quot;/&gt;
+        &lt;xs:element type=&quot;catalog-table&quot; name=&quot;table&quot;/&gt;
+    &lt;/xs:choice&gt;
+
+</pre></div>
+<p>Feed should contain one of the two storage options. Locations on File System or Table in a Catalog.</p></div>
+<div class="section">
+<h5>File System Storage<a name="File_System_Storage"></a></h5>
+<p>This is expressed as a location on the file system. Location specifies where the feed is available on this cluster. A location tag specifies the type of location like data, meta, stats and the corresponding paths for them. A feed should at least define the location for type data, which specifies the HDFS path pattern where the feed is generated periodically. ex: type=&quot;data&quot; path=&quot;/projects/TrafficHourly/${YEAR}-${MONTH}-${DAY}/traffic&quot; The granularity of date pattern in the path should be at least that of a frequency of a feed.</p>
+<div class="source">
+<pre>
+ &lt;location type=&quot;data&quot; path=&quot;/projects/falcon/clicks&quot; /&gt;
+ &lt;location type=&quot;stats&quot; path=&quot;/projects/falcon/clicksStats&quot; /&gt;
+ &lt;location type=&quot;meta&quot; path=&quot;/projects/falcon/clicksMetaData&quot; /&gt;
+
+</pre></div></div>
+<div class="section">
+<h5>Catalog Storage (Table)<a name="Catalog_Storage_Table"></a></h5>
+<p>A table tag specifies the table URI in the catalog registry as:</p>
+<div class="source">
+<pre>
+catalog:$database-name:$table-name#partition-key=partition-value);partition-key=partition-value);*
+
+</pre></div>
+<p>This is modeled as a URI (similar to an ISBN URI). It does not have any reference to Hive or HCatalog. Its quite generic so it can be tied to other implementations of a catalog registry. The catalog implementation specified in the startup config provides implementation for the catalog URI.</p>
+<p>Top-level partition has to be a dated pattern and the granularity of date pattern should be at least that of a frequency of a feed.</p>
+<p>Examples:</p>
+<div class="source">
+<pre>
+&lt;table uri=&quot;catalog:default:clicks#ds=${YEAR}-${MONTH}-${DAY}-${HOUR};region=${region}&quot; /&gt;
+&lt;table uri=&quot;catalog:src_demo_db:customer_raw#ds=${YEAR}-${MONTH}-${DAY}-${HOUR}&quot; /&gt;
+&lt;table uri=&quot;catalog:tgt_demo_db:customer_bcp#ds=${YEAR}-${MONTH}-${DAY}-${HOUR}&quot; /&gt;
+
+</pre></div></div>
+<div class="section">
+<h3>Entity Management actions<a name="Entity_Management_actions"></a></h3>
+<p>All the following operation can also be done using <a href="./Restapi/ResourceList.html">Falcon's RESTful API</a>.</p></div>
+<div class="section">
+<h4>Submit<a name="Submit"></a></h4>
+<p>Entity submit action allows a new cluster/feed/process to be setup within Falcon. Submitted entity is not scheduled, meaning it would simply be in the configuration store within Falcon. Besides validating against the schema for the corresponding entity being added, the Falcon system would also perform inter-field validations within the configuration file and validations across dependent entities.</p></div>
+<div class="section">
+<h4>List<a name="List"></a></h4>
+<p>List all the entities within the falcon config store for the entity type being requested. This will include both scheduled and submitted entity configurations.</p></div>
+<div class="section">
+<h4>Dependency<a name="Dependency"></a></h4>
+<p>Returns the dependencies of the requested entity. Dependency list include both forward and backward dependencies (depends on &amp; is dependent on). For example, a feed would show process that are dependent on the feed and the clusters that it depends on.</p></div>
+<div class="section">
+<h4>Schedule<a name="Schedule"></a></h4>
+<p>Feeds or Processes that are already submitted and present in the config store can be scheduled. Upon schedule, Falcon system wraps the required repeatable action as a bundle of oozie coordinators and executes them on the Oozie scheduler. (It is possible to extend Falcon to use an alternate workflow engine other than Oozie). Falcon overrides the workflow instance's external id in Oozie to reflect the process/feed and the nominal time. This external Id can then be used for instance management functions.</p>
+<p>The schedule copies the user specified workflow and library to a staging path, and the scheduler references the workflow and lib from the staging path.</p></div>
+<div class="section">
+<h4>Suspend<a name="Suspend"></a></h4>
+<p>This action is applicable only on scheduled entity. This triggers suspend on the oozie bundle that was scheduled earlier through the schedule function. No further instances are executed on a suspended process/feed.</p></div>
+<div class="section">
+<h4>Resume<a name="Resume"></a></h4>
+<p>Puts a suspended process/feed back to active, which in turn resumes applicable oozie bundle.</p></div>
+<div class="section">
+<h4>Status<a name="Status"></a></h4>
+<p>Gets the current status of the entity.</p></div>
+<div class="section">
+<h4>Definition<a name="Definition"></a></h4>
+<p>Gets the current entity definition as stored in the configuration store. Please note that user documentations in the entity will not be retained.</p></div>
+<div class="section">
+<h4>Delete<a name="Delete"></a></h4>
+<p>Delete operation on the entity removes any scheduled activity on the workflow engine, besides removing the entity from the falcon configuration store. Delete operation on an entity would only succeed if there are no dependent entities on the deleted entity.</p></div>
+<div class="section">
+<h4>Update<a name="Update"></a></h4>
+<p>Update operation allows an already submitted/scheduled entity to be updated. Cluster update is currently not allowed. Feed update can cause cascading update to all the processes already scheduled. Process update triggers update in falcon if entity is updated. The following set of actions are performed in scheduler to realize an update:</p>
+<ul>
+<li>Update the old scheduled entity to set the end time to &quot;now&quot;</li>
+<li>Schedule as per the new process/feed definition with the start time as &quot;now&quot;</li></ul></div>
+<div class="section">
+<h3>Instance Management actions<a name="Instance_Management_actions"></a></h3>
+<p>Instance Manager gives user the option to control individual instances of the process based on their instance start time (start time of that instance). Start time needs to be given in standard TZ format. Example: 01 Jan 2012 01:00 =&gt; 2012-01-01T01:00Z</p>
+<p>All the instance management operations (except running) allow single instance or list of instance within a Date range to be acted on. Make sure the dates are valid. i.e. are within the start and end time of process itself.</p>
+<p>For every query in instance management the process name is a compulsory parameter.</p>
+<p>Parameters -start and -end are used to mention the date range within which you want the instance to be operated upon.</p>
+<p>-start: using only &quot;-start&quot; without &quot;-end&quot; will conduct the desired operation only on single instance given by date along with start.</p>
+<p>-end: &quot;-end&quot; can only be used along with &quot;-start&quot; . It corresponds to the end date till which instance need to operated upon.</p>
+<p></p>
+<ul>
+<li>1. <b>status</b>: -status option via CLI can be used to get the status of a single or multiple instances. If the instance is not yet materialized but is within the process validity range, WAITING is returned as the state. Along with the status of the instance log location is also returned.</li></ul>
+<p></p>
+<ul>
+<li>2.	<b>running</b>: -running returns all the running instance of the process. It does not take any start or end dates but simply return all the instances in state RUNNING at that given time.</li></ul>
+<p></p>
+<ul>
+<li>3.	<b>rerun</b>: -rerun is the option that you will use most often from instance management. As the name suggest this option is used to rerun a particular instance or instances of the process. The rerun option reruns all parent workflow for the instance, which in turn rerun all the sub-workflows for it. This option is valid for any instance in terminal state, i.e. KILLED, SUCCEEDED, FAILED. User can also set properties in the request, which will give options what types of actions should be rerun like, only failed, run all etc. These properties are dependent on the workflow engine being used along with falcon.</li></ul>
+<p></p>
+<ul>
+<li>4. <b>suspend</b>: -suspend is used to suspend a instance or instances for the given process. This option pauses the parent workflow at the state, which it was in at the time of execution of this command. This command is similar to SUSPEND process command in functionality only difference being, SUSPEND process suspends all the instance whereas suspend instance suspend only that instance or instances in the range.</li></ul>
+<p></p>
+<ul>
+<li>5.	<b>resume</b>: -resume option is used to resume any instance that is in suspended state. (Note: due to a bug in oozie &#xef;&#xbf;&#xbd;resume option in some cases may not actually resume the suspended instance/ instances)</li>
+<li>6. <b>kill</b>: -kill option can be used to kill an instance or multiple instances</li></ul>
+<p></p>
+<ul>
+<li>7. <b>summary</b>: -summary option via CLI can be used to get the consolidated status of the instances between the specified time period. Each status along with the corresponding instance count are listed for each of the applicable colos.</li></ul>
+<p>In all the cases where your request is syntactically correct but logically not, the instance / instances are returned with the same status as earlier. Example: trying to resume a KILLED / SUCCEEDED instance will return the instance with KILLED / SUCCEEDED, without actually performing any operation. This is so because only an instance in SUSPENDED state can be resumed. Same thing is valid for rerun a SUSPENDED or RUNNING options etc.</p></div>
+<div class="section">
+<h3>Retention<a name="Retention"></a></h3>
+<p>In coherence with it's feed lifecycle management philosophy, Falcon allows the user to retain data in the system for a specific period of time for a scheduled feed. The user can specify the retention period in the respective feed/data xml in the following manner for each cluster the feed can belong to :</p>
+<div class="source">
+<pre>
+&lt;clusters&gt;
+        &lt;cluster name=&quot;corp&quot; type=&quot;source&quot;&gt;
+            &lt;validity start=&quot;2012-01-30T00:00Z&quot; end=&quot;2013-03-31T23:59Z&quot;
+                      timezone=&quot;UTC&quot; /&gt;
+            &lt;retention limit=&quot;hours(10)&quot; action=&quot;delete&quot; /&gt; 
+        &lt;/cluster&gt;
+ &lt;/clusters&gt; 
+
+</pre></div>
+<p>The 'limit' attribute can be specified in units of minutes/hours/days/months, and a corresponding numeric value can be attached to it. It essentially instructs the system to retain data till the time specified in the attribute spanning backwards in time, from now. Any data older than that is erased from the system. By default, Falcon runs retention jobs up to the cluster validity end time. This causes the instances created within the endTime and &quot;endTime - retentionLimit&quot; to be retained forever. If the users do not want to retain any instances of the feed past the cluster validity end time, user should set property &quot;falcon.retention.keep.instances.beyond.validity&quot; to false in runtime.properties.</p>
+<p>With the integration of Hive, Falcon also provides retention for tables in Hive catalog.</p></div>
+<div class="section">
+<h4>Example:<a name="Example:"></a></h4>
+<p>If retention period is 10 hours, and the policy kicks in at time 't', the data retained by system is essentially the one after or equal to t-10h . Any data before t-10h is removed from the system.</p>
+<p>The 'action' attribute can attain values of DELETE/ARCHIVE. Based upon the tag value, the data eligible for removal is either deleted/archived.</p></div>
+<div class="section">
+<h4>NOTE: Falcon 0.1/0.2 releases support Delete operation only<a name="NOTE:_Falcon_0.10.2_releases_support_Delete_operation_only"></a></h4></div>
+<div class="section">
+<h4>When does retention policy come into play, aka when is retention really performed?<a name="When_does_retention_policy_come_into_play_aka_when_is_retention_really_performed"></a></h4>
+<p>Retention policy in Falcon kicks off on the basis of the time value specified by the user. Here are the basic rules:</p>
+<p></p>
+<ul>
+<li>If the retention policy specified is less than 24 hours: In this event, the retention policy automatically kicks off every 6 hours.</li>
+<li>If the retention policy specified is more than 24 hours: In this event, the retention policy automatically kicks off every 24 hours.</li>
+<li>As soon as a feed is successfully scheduled: the retention policy is triggered immediately regardless of the current timestamp/state of the system.</li></ul>
+<p>Relation between feed path and retention policy: Retention policy for a particular scheduled feed applies only to the eligible feed path specified in the feed xml. Any other paths that do not conform to the specified feed path are left unaffected by the retention policy.</p></div>
+<div class="section">
+<h3>Replication<a name="Replication"></a></h3>
+<p>Falcon's feed lifecycle management also supports Feed replication across different clusters out-of-the-box. Multiple source clusters and target clusters can be defined in feed definition. Falcon replicates the data using hadoop's distcp version 2 across different clusters whenever a feed is scheduled.</p>
+<p>The frequency at which the data is replicated is governed by the frequency specified in the feed definition. Ideally, the feeds data path should have the same granularity as that for frequency of the feed, i.e. if the frequency of the feed is hours(3), then the data path should be to level /${YEAR}/${MONTH}/${DAY}/${HOUR}.</p>
+<div class="source">
+<pre>
+    &lt;clusters&gt;
+        &lt;cluster name=&quot;sourceCluster1&quot; type=&quot;source&quot; partition=&quot;${cluster.name}&quot; delay=&quot;minutes(40)&quot;&gt;
+            &lt;validity start=&quot;2021-11-01T00:00Z&quot; end=&quot;2021-12-31T00:00Z&quot;/&gt;
+        &lt;/cluster&gt;
+        &lt;cluster name=&quot;sourceCluster2&quot; type=&quot;source&quot; partition=&quot;COUNTRY/${cluster.name}&quot;&gt;
+            &lt;validity start=&quot;2021-11-01T00:00Z&quot; end=&quot;2021-12-31T00:00Z&quot;/&gt;
+        &lt;/cluster&gt;
+        &lt;cluster name=&quot;backupCluster&quot; type=&quot;target&quot;&gt;
+            &lt;validity start=&quot;2011-11-01T00:00Z&quot; end=&quot;2011-12-31T00:00Z&quot;/&gt;
+        &lt;/cluster&gt;
+    &lt;/clusters&gt;
+
+</pre></div>
+<p>If more than 1 source cluster is defined, then partition expression is compulsory, a partition can also have a constant. The expression is required to avoid copying data from different source location to the same target location, also only the data in the partition is considered for replication if it is present. The partitions defined in the cluster should be less than or equal to the number of partition declared in the feed definition.</p>
+<p>Falcon uses pull based replication mechanism, meaning in every target cluster, for a given source cluster, a coordinator is scheduled which pulls the data using distcp from source cluster. So in the above example, 2 coordinators are scheduled in backupCluster, one which pulls the data from sourceCluster1 and another from sourceCluster2. Also, for every feed instance which is replicated Falcon sends a JMS message on success or failure of replication instance.</p>
+<p>Replication can be scheduled with the past date, the time frame considered for replication is the minimum overlapping window of start and end time of source and target cluster, ex: if s1 and e1 is the start and end time of source cluster respectively, and s2 and e2 of target cluster, then the coordinator is scheduled in target cluster with start time max(s1,s2) and min(e1,e2).</p>
+<p>A feed can also optionally specify the delay for replication instance in the cluster tag, the delay governs the replication instance delays. If the frequency of the feed is hours(2) and delay is hours(1), then the replication instance will run every 2 hours and replicates data with an offset of 1 hour, i.e. at 09:00 UTC, feed instance which is eligible for replication is 08:00; and 11:00 UTC, feed instance of 10:00 UTC is eligible and so on.</p>
+<p>If it is required to capture the feed replication metrics like TIMETAKEN, COPY, BYTESCOPIED, set the parameter &quot;job.counter&quot; to &quot;true&quot; in feed entity properties section. Captured metrics from instance will be populated to the GraphDB for display on UI.</p>
+<p><b>Example:</b></p>
+<div class="source">
+<pre>
+&lt;properties&gt;
+        &lt;property name=&quot;job.counter&quot; value=&quot;true&quot; /&gt;
+&lt;/properties&gt;
+
+</pre></div></div>
+<div class="section">
+<h4>Where is the feed path defined for File System Storage?<a name="Where_is_the_feed_path_defined_for_File_System_Storage"></a></h4>
+<p>It's defined in the feed xml within the location tag.</p>
+<p><b>Example:</b></p>
+<div class="source">
+<pre>
+&lt;locations&gt;
+        &lt;location type=&quot;data&quot; path=&quot;/retention/testFolders/${YEAR}-${MONTH}-${DAY}&quot; /&gt;
+&lt;/locations&gt;
+
+</pre></div>
+<p>Now, if the above path contains folders in the following fashion:</p>
+<p>/retention/testFolders/${YEAR}-${MONTH}-${DAY} /retention/testFolders/${YEAR}-${MONTH}/someFolder</p>
+<p>The feed retention policy would only act on the former and not the latter.</p>
+<p>Users may choose to override the feed path specific to a cluster, so every cluster may have a different feed path. <b>Example:</b></p>
+<div class="source">
+<pre>
+&lt;clusters&gt;
+        &lt;cluster name=&quot;testCluster&quot; type=&quot;source&quot;&gt;
+            &lt;validity start=&quot;2011-11-01T00:00Z&quot; end=&quot;2011-12-31T00:00Z&quot;/&gt;
+       		&lt;locations&gt;
+        		&lt;location type=&quot;data&quot; path=&quot;/projects/falcon/clicks/${YEAR}-${MONTH}-${DAY}&quot; /&gt;
+        		&lt;location type=&quot;stats&quot; path=&quot;/projects/falcon/clicksStats/${YEAR}-${MONTH}-${DAY}&quot; /&gt;
+        		&lt;location type=&quot;meta&quot; path=&quot;/projects/falcon/clicksMetaData/${YEAR}-${MONTH}-${DAY}&quot; /&gt;
+    		&lt;/locations&gt;
+        &lt;/cluster&gt;
+    &lt;/clusters&gt;
+
+</pre></div></div>
+<div class="section">
+<h4>Hive Table Replication<a name="Hive_Table_Replication"></a></h4>
+<p>With the integration of Hive, Falcon adds table replication of Hive catalog tables. Replication will be triggered for a partition when the partition is complete at the source.</p>
+<p></p>
+<ul>
+<li>Falcon will use HCatalog (Hive) API to export the data for a given table and the partition,</li></ul>which will result in a data collection that includes metadata on the data's storage format, the schema, how the data is sorted, what table the data came from, and values of any partition keys from that table.
+<ul>
+<li>Falcon will use discp tool to copy the exported data collection into the secondary cluster into a staging</li></ul>directory used by Falcon.
+<ul>
+<li>Falcon will then import the data into HCatalog (Hive) using the HCatalog (Hive) API. If the specified table does</li></ul>not yet exist, Falcon will create it, using the information in the imported metadata to set defaults for the table such as schema, storage format, etc.
+<ul>
+<li>The partition is not complete and hence not visible to users until all the data is committed on the secondary</li></ul>cluster, (no dirty reads)</div>
+<div class="section">
+<h4>Archival as Replication<a name="Archival_as_Replication"></a></h4>
+<p>Falcon allows users to archive data from on-premice to cloud, either Azure WASB or S3. It uses the underlying replication for archiving data from source to target. The archival URI is specified as the overridden location for the target cluster.</p>
+<p><b>Example:</b></p>
+<div class="source">
+<pre>
+    &lt;clusters&gt;
+        &lt;cluster name=&quot;on-premise-cluster&quot; type=&quot;source&quot;&gt;
+            &lt;validity start=&quot;2021-11-01T00:00Z&quot; end=&quot;2021-12-31T00:00Z&quot;/&gt;
+        &lt;/cluster&gt;
+        &lt;cluster name=&quot;cloud-cluster&quot; type=&quot;target&quot;&gt;
+            &lt;validity start=&quot;2011-11-01T00:00Z&quot; end=&quot;2011-12-31T00:00Z&quot;/&gt;
+            &lt;locations&gt;
+                &lt;location type=&quot;data&quot;
+                          path=&quot;wasb://test@blah.blob.core.windows.net/data/${YEAR}-${MONTH}-${DAY}-${HOUR}&quot;/&gt;
+            &lt;/locations&gt;
+        &lt;/cluster&gt;
+    &lt;/clusters&gt;
+
+</pre></div></div>
+<div class="section">
+<h4>Relation between feed's retention limit and feed's late arrival cut off period:<a name="Relation_between_feeds_retention_limit_and_feeds_late_arrival_cut_off_period:"></a></h4>
+<p>For reasons that are obvious, Falcon has an external validation that ensures that the user always specifies the feed retention limit to be more than the feed's allowed late arrival period. If this rule is violated by the user, the feed submission call itself throws back an error.</p></div>
+<div class="section">
+<h3>Cross entity validations<a name="Cross_entity_validations"></a></h3></div>
+<div class="section">
+<h4>Entity Dependencies in a nutshell<a name="Entity_Dependencies_in_a_nutshell"></a></h4>
+<p><img src="EntityDependency.png" alt="" /></p>
+<p>The above schematic shows the dependencies between entities in Falcon. The arrow in above diagram points from a dependency to the dependent.</p>
+<p>Let's just get one simple rule stated here, which we will keep referring to time and again while talking about entities: A dependency in the system cannot be removed unless all it's dependents are removed first. This holds true for all transitive dependencies also.</p>
+<p>Now, let's follow it up with a simple illustration of an Falcon Job:</p>
+<p>Let's consider a process P that refers to feed F1 as an input feed, and generates feed F2 as an output feed. These feeds/processes are supposed to be associated with a cluster C1.</p>
+<p>The order of submission of this job would be in the following order:</p>
+<p>C1-&gt;F1/F2(in any order)-&gt;P</p>
+<p>The order of removal of this job from the system is in the exact opposite order, i.e.:</p>
+<p>P-&gt;F1/F2(in any order)-&gt;C1</p>
+<p>Please note that there might be multiple process referring to a particular feed, or a single feed belonging to multiple clusters. In that event, any of the dependencies cannot be removed unless ALL of their dependents are removed first. Attempting to do so will result in an error message and a 400 Bad Request operation.</p></div>
+<div class="section">
+<h4>Other cross validations between entities in Falcon system<a name="Other_cross_validations_between_entities_in_Falcon_system"></a></h4>
+<p><b>Cluster-Feed Cross validations:</b></p>
+<p></p>
+<ul>
+<li>The cluster(s) referenced by feed (inside the &lt;clusters&gt; tag) should be  present in the system at the time</li></ul>of submission. Any exception to this results in a feed submission failure. Note that a feed might be referring to more than a single cluster. The identifier for the same is the 'name' attribute for the individual cluster.
+<p><b>Example:</b></p>
+<p><b>Feed XML:</b></p>
+<div class="source">
+<pre>
+   &lt;clusters&gt;
+        &lt;cluster name=&quot;corp&quot; type=&quot;source&quot;&gt;
+            &lt;validity start=&quot;2009-01-01T00:00Z&quot; end=&quot;2012-12-31T23:59Z&quot;
+                      timezone=&quot;UTC&quot; /&gt;
+            &lt;retention limit=&quot;months(6)&quot; action=&quot;delete&quot; /&gt;
+        &lt;/cluster&gt;
+    &lt;/clusters&gt;
+
+</pre></div>
+<p><b>Cluster corp's XML:</b></p>
+<div class="source">
+<pre>
+&lt;cluster colo=&quot;gs&quot; description=&quot;&quot; name=&quot;corp&quot; xmlns=&quot;uri:falcon:cluster:0.1&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
+
+</pre></div>
+<p><b>Cluster-Process Cross validations:</b></p>
+<p></p>
+<ul>
+<li>In a similar relationship to that of feed and a cluster, a process also refers to the relevant cluster by the</li></ul>'name' attribute. Any exception results in a process submission failure.</div>
+<div class="section">
+<h4>Example:<a name="Example:"></a></h4></div>
+<div class="section">
+<h4>Process XML:<a name="Process_XML:"></a></h4>
+<div class="source">
+<pre>
+&lt;process name=&quot;agregator-coord16&quot;&gt;
+    &lt;cluster name=&quot;corp&quot;/&gt;....
+
+</pre></div></div>
+<div class="section">
+<h4>Cluster corp's XML:<a name="Cluster_corps_XML:"></a></h4>
+<div class="source">
+<pre>
+&lt;cluster colo=&quot;gs&quot; description=&quot;&quot; name=&quot;corp&quot; xmlns=&quot;uri:falcon:cluster:0.1&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
+
+</pre></div>
+<p><b>Feed-Process Cross Validations:</b></p>
+<p>1. The process &lt;input&gt; and feeds designated as input feeds for the job:</p>
+<p>For every feed referenced in the &lt;input&gt; tag in a process definition, following rules are applied when the process is due for submission:</p>
+<p></p>
+<ul>
+<li>The feed having a value associated with the 'feed' attribute in input tag should be present in</li></ul>the system. The corresponding attribute in the feed definition is the 'name' attribute in the &lt;feed&gt; tag.
+<p><b>Example:</b></p>
+<p><b>Process xml:</b></p>
+<div class="source">
+<pre>
+&lt;input end-instance=&quot;now(0,20)&quot; start-instance=&quot;now(0,-60)&quot;
+feed=&quot;raaw-logs16&quot; name=&quot;inputData&quot;/&gt;
+
+</pre></div>
+<p><b>Feed xml:</b></p>
+<div class="source">
+<pre>
+&lt;feed description=&quot;clicks log&quot; name=&quot;raw-logs16&quot;....
+
+</pre></div>
+<p>* The time interpretation for corresponding tags indicating the start and end instances for a particular input feed in the process xml should lie well within the time span of the period specified in &lt;validity&gt; tag of the particular feed.</p>
+<p><b>Example:</b></p>
+<p>1. In the following scenario, process submission will result in an error:</p>
+<p><b>Process XML:</b></p>
+<div class="source">
+<pre>
+&lt;input end-instance=&quot;now(0,20)&quot; start-instance=&quot;now(0,-60)&quot;
+   feed=&quot;raw-logs16&quot; name=&quot;inputData&quot;/&gt;
+
+</pre></div>
+<p><b>Feed XML:</b></p>
+<div class="source">
+<pre>
+&lt;validity start=&quot;2009-01-01T00:00Z&quot; end=&quot;2009-12-31T23:59Z&quot;.....
+
+</pre></div>
+<p>Explanation: The process timelines for the feed range between a 40 minute interval between [-60m,-20m] from the current timestamp (which lets assume is 'today' as per the 'now' directive). However, the feed validity is between a 1 year period in 2009, which makes it anachronistic.</p>
+<p>2. The following example would work just fine:</p>
+<p><b>Process XML:</b></p>
+<div class="source">
+<pre>
+&lt;input end-instance=&quot;now(0,20)&quot; start-instance=&quot;now(0,-60)&quot;
+   feed=&quot;raaw-logs16&quot; name=&quot;inputData&quot;/&gt;
+
+</pre></div>
+<p><b>Feed XML:</b></p>
+<div class="source">
+<pre>
+validity start=&quot;2009-01-01T00:00Z&quot; end=&quot;2012-12-31T23:59Z&quot; .......
+
+</pre></div>
+<p>since at the time of charting this document (03/03/2012), the feed validity is able to encapsulate the process input's start and end instances.</p>
+<p>Failure to follow any of the above rules would result in a process submission failure.</p>
+<p><b>NOTE:</b> Even though the above check ensures that the timelines are not anachronistic, if the input data is not present in the system for the specified time period, the process can be submitted and scheduled, but all instances created would result in a WAITING state unless data is actually provided in the cluster.</p></div>
+<div class="section">
+<h3>Updating process and feed definition<a name="Updating_process_and_feed_definition"></a></h3>
+<p>Any changes in feed/process can be done by updating its definition. After the update, any new workflows which are to be scheduled after the update call will pick up the new changes. Feed/process name and start time can't be updated. Updating a process triggers updates to the workflow that is triggered in the workflow engine. Updating feed updates feed workflows like retention, replication etc. and also updates the processes that reference the feed.</p></div>
+<div class="section">
+<h3>Handling late input data<a name="Handling_late_input_data"></a></h3>
+<p>Falcon system can handle late arrival of input data and appropriately re-trigger processing for the affected instance. From the perspective of late handling, there are two main configuration parameters late-arrival cut-off and late-inputs section in feed and process entity definition that are central. These configurations govern how and when the late processing happens. In the current implementation (oozie based) the late handling is very simple and basic. The falcon system looks at all dependent input feeds for a process and computes the max late cut-off period. Then it uses a scheduled messaging framework, like the one available in Apache ActiveMQ or Java's DelayQueue to schedule a message with a cut-off period, then after a cut-off period the message is dequeued and Falcon checks for changes in the feed data which is recorded in HDFS in latedata file by falcons &quot;record-size&quot; action, if it detects any changes then the workflow will be rerun with the new set of feed da
 ta.</p>
+<p><b>Example:</b> For a process entity, the late rerun policy can be configured in the process definition. Falcon supports 3 policies, periodic, exp-backoff and final. Delay specifies, how often the feed data should be checked for changes, also one needs to  explicitly set the feed names in late-input which needs to be checked for late data.</p>
+<div class="source">
+<pre>
+  &lt;late-process policy=&quot;exp-backoff&quot; delay=&quot;hours(1)&quot;&gt;
+        &lt;late-input input=&quot;impression&quot; workflow-path=&quot;hdfs://impression/late/workflow&quot; /&gt;
+        &lt;late-input input=&quot;clicks&quot; workflow-path=&quot;hdfs://clicks/late/workflow&quot; /&gt;
+   &lt;/late-process&gt;
+
+</pre></div>
+<p><b>NOTE:</b> Feeds configured with table storage does not support late input data handling at this point. This will be made available in the near future.</p>
+<p>For a feed entity replication job, the default late data handling policy can be configured in the runtime.properties file. Since these properties are runtime.properties, they will take effect for all replication jobs completed subsequent to the change.</p>
+<div class="source">
+<pre>
+  # Default configs to handle replication for late arriving feeds.
+  *.feed.late.allowed=true
+  *.feed.late.frequency=hours(3)
+  *.feed.late.policy=exp-backoff
+
+</pre></div></div>
+<div class="section">
+<h3>Idempotency<a name="Idempotency"></a></h3>
+<p>All the operations in Falcon are Idempotent. That is if you make same request to the falcon server / prism again you will get a SUCCESSFUL return if it was SUCCESSFUL in the first attempt. For example, you submit a new process / feed and get SUCCESSFUL message return. Now if you run the same command / api request on same entity you will again get a SUCCESSFUL message. Same is true for other operations like schedule, kill, suspend and resume. Idempotency also by takes care of the condition when request is sent through prism and fails on one or more servers. For example prism is configured to send request to 3 servers. First user sends a request to SUBMIT a process on all 3 of them, and receives a response SUCCESSFUL from all of them. Then due to some issue one of the servers goes down, and user send a request to schedule the submitted process. This time he will receive a response with PARTIAL status and a FAILURE message from the server that has gone down. If the users check he wi
 ll find the process would have been started and running on the 2 SUCCESSFUL servers. Now the issue with server is figured out and it is brought up. Sending the SCHEDULE request again through prism will result in a SUCCESSFUL response from prism as well as other three servers, but this time PROCESS will be SCHEDULED only on the server which had failed earlier and other two will keep running as before.</p></div>
+<div class="section">
+<h3>Falcon EL Expressions<a name="Falcon_EL_Expressions"></a></h3>
+<p>Falcon expression language can be used in process definition for giving the start and end instance for various feeds.</p>
+<p>Before going into how to use falcon EL expressions it is necessary to understand what does instance and instance start time refer to with respect to Falcon.</p>
+<p>Lets consider a part of process definition below:</p>
+<div class="source">
+<pre>
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
+&lt;process name=&quot;testProcess&quot;&gt;
+    &lt;clusters&gt;
+        &lt;cluster name=&quot;corp&quot;&gt;
+            &lt;validity start=&quot;2010-01-02T01:00Z&quot; end=&quot;2011-01-03T03:00Z&quot; /&gt;
+        &lt;/cluster&gt;
+    &lt;/clusters&gt;
+   &lt;parallel&gt;2&lt;/parallel&gt;
+   &lt;order&gt;LIFO&lt;/order&gt;
+   &lt;timeout&gt;hours(3)&lt;/timeout&gt;
+   &lt;frequency&gt;minutes(30)&lt;/frequency&gt;
+
+  &lt;inputs&gt;
+ &lt;input end-instance=&quot;now(0,20)&quot; start-instance=&quot;now(0,-60)&quot;
+			feed=&quot;input-log&quot; name=&quot;inputData&quot;/&gt;
+ &lt;/inputs&gt;
+&lt;outputs&gt;
+	&lt;output instance=&quot;now(0,0)&quot; feed=&quot;output-log&quot;
+		name=&quot;outputData&quot; /&gt;
+&lt;/outputs&gt;
+...
+...
+...
+...
+&lt;/process&gt;
+
+</pre></div>
+<p>The above definition says that the process will start at 2nd of Jan 2010 at 1 am and will end at 3rd of Jan 2011 at 3 am on cluster corp. Also process will start a user-defined workflow (which we will call instance) every 30 mins.</p>
+<p>This means starting 2010-01-02T01:00Z every 30 mins a instance will start will run user defined workflow. Now if this workflow needs some input data and produce some output, user needs to give that in &lt;inputs&gt; and &lt;outputs&gt; tags.  Since the inputs that the process takes can be distributed over a wide range we use the limits by giving &quot;start&quot; and &quot;end&quot; instance for input. Output is only one location so only instance is given.  The timeout specifies, the how long a given instance should wait for input data before being terminated by the workflow engine.</p>
+<p>Coming back to instance start time, since a instance will start every 30 mins starting 2010-01-02T01:00Z, the time it is scheduled to start is called its instance time. For example first few instance time for above example are:</p>
+<p><pre>Instance Number      instance start Time</pre></p>
+<p><pre>1			 2010-01-02T01:00Z</pre> <pre>2			 2010-01-02T01:30Z</pre> <pre>3			 2010-01-02T02:00Z</pre> <pre>4			 2010-01-02T02:30Z</pre> <pre>.				.</pre> <pre>.				.</pre> <pre>.				.</pre> <pre>.				.</pre></p>
+<p>Now lets go to how to use expression language. Only thing to keep in mind is all EL evaluation are done based on the start time of that instance, and very instance will have different inputs / outputs based on the feed instance given in process definition.</p>
+<p>All the parameters in various El can be both positive, zero or negative values. Positive values indicate so many units in future, zero means the base time EL has been resolved to, and negative values indicate corresponding units in past.</p>
+<p><b><i>Note: if no instance is created at the resolved time, then the instance immediately before it is considered.</i></b></p>
+<p>Falcon currently support following ELs:</p>
+<p></p>
+<ul>
+<li>1.	<b>now(hours,minutes)</b>: now refer to the instance start time. Hours and minutes given are in reference with the start time of instance. For example now(-2,40)  corresponds to feed instance at -2 hr and +40 minutes i.e.  feed instance 80 mins before the instance start time. Id user would have given now(0,-80) it would have correspond to the same.</li>
+<li>2.	<b>today(hours,minutes)</b>: hours and minutes given in this EL corresponds to instance from the start day of instance start time. Ie. If instance start is at 2010-01-02T01:30Z  then today(-3,-20) will mean instance created at 2010-01-01T20:40 and today(3,20) will correspond to 2010-01-02T3:20Z.</li></ul>
+<p></p>
+<ul>
+<li>3.	<b>yesterday(hours,minutes)</b>: As the name suggest EL yesterday picks up feed instances with respect to start of day yesterday. Hours and minutes are added to the 00 hours starting yesterday, Example: yesterday(24,30) will actually correspond to 00:30 am of today, for 2010-01-02T01:30Z this would mean 2010-01-02:00:30 feed.</li></ul>
+<p></p>
+<ul>
+<li>7.	<b>lastYear(month,day,hour,minute)</b>: This is exactly similarly to currentYear in usage&gt; only difference being start reference is taken to start of previous year. For example: lastYear(4,2,2,20) will correspond to feed instance created at 2009-05-03T02:20Z and lastYear(12,2,2,20) will correspond to feed at 2010-01-03T02:20Z.</li></ul>
+<p></p>
+<ul>
+<li>4.	<b>currentMonth(day,hour,minute)</b>: Current month takes the reference to start of the month with respect to instance start time. One thing to keep in mind is that day is added to the first day of the month. So the value of day is the number of days you want to add to the first day of the month. For example: for instance start time 2010-01-12T01:30Z and El as currentMonth(3,2,40) will correspond to feed created at 2010-01-04T02:40Z and currentMonth(0,0,0) will mean 2010-01-01T00:00Z.</li></ul>
+<p></p>
+<ul>
+<li>5.	<b>lastMonth(day,hour,minute)</b>: Parameters for lastMonth is same as currentMonth, only difference being the reference is shifted to one month back. For instance start 2010-01-12T01:30Z lastMonth(2,3,30) will correspond to feed instance at 2009-12-03:T03:30Z</li></ul>
+<p></p>
+<ul>
+<li>6.	<b>currentYear(month,day,hour,minute)</b>: The month,day,hour, minutes in the parameter are added with reference to the start of year of instance start time. For our example start time 2010-01-02:00:30 reference will go back to 2010-01-01:T00:00Z. Also similar to days, months are added to the 1st month that Jan. So currentYear(0,2,2,20) will mean 2010-01-03T02:20Z while currentYear(11,2,2,20) will mean 2010-12-03T02:20Z</li></ul>
+<p></p>
+<ul>
+<li>7.	<b>lastYear(month,day,hour,minute)</b>: This is exactly similarly to currentYear in usage&gt; only difference being start reference is taken to start of previous year. For example: lastYear(4,2,2,20) will corrospond to feed insatnce created at 2009-05-03T02:20Z and lastYear(12,2,2,20) will corrospond to feed at 2010-01-03T02:20Z.</li></ul>
+<p></p>
+<ul>
+<li>8. <b>latest(number of latest instance)</b>: This will simply make you input consider the number of latest available instance of the feed given as parameter. For example: latest(0) will consider the last available instance of feed, where as latest latest(-1) will consider second last available feed and latest(-3) will consider 4th last available feed.</li></ul>
+<p></p>
+<ul>
+<li>9.	<b>currentWeek(weekDayName,hour,minute)</b>: This is similar to currentMonth in the sense that it returns a relative time with respect to the instance start time, considering the day name provided as input as the start of the week. The day names can be one of SUN, MON, TUE, WED, THU, FRI, SAT.</li></ul>
+<p></p>
+<ul>
+<li>10. <b>lastWeek(weekDayName,hour,minute)</b>: This is typically 7 days less than what the currentWeek returns for similar parameters.</li></ul></div>
+<div class="section">
+<h3>Lineage<a name="Lineage"></a></h3>
+<p>Falcon adds the ability to capture lineage for both entities and its associated instances. It also captures the metadata tags associated with each of the entities as relationships. The following relationships are captured:</p>
+<p></p>
+<ul>
+<li>owner of entities - User</li>
+<li>data classification tags</li>
+<li>groups defined in feeds</li>
+<li>Relationships between entities
+<ul>
+<li>Clusters associated with Feed and Process entity</li>
+<li>Input and Output feeds for a Process</li></ul></li>
+<li>Instances refer to corresponding entities</li></ul>
+<p>Lineage is exposed in 3 ways:</p>
+<p></p>
+<ul>
+<li>REST API</li>
+<li>CLI</li>
+<li>Dashboard - Interactive lineage for Process instances</li></ul>
+<p>This feature is enabled by default but could be disabled by removing the following from:</p>
+<div class="source">
+<pre>
+config name: *.application.services
+config value: org.apache.falcon.metadata.MetadataMappingService
+
+</pre></div>
+<p>Lineage is only captured for Process executions. A future release will capture lineage for lifecycle policies such as replication and retention.</p></div>
+<div class="section">
+<h3>Security<a name="Security"></a></h3>
+<p>Security is detailed in <a href="./Security.html">Security</a>.</p></div>
+<div class="section">
+<h3>Recipes<a name="Recipes"></a></h3>
+<p>Recipes is detailed in <a href="./Recipes.html">Recipes</a>.</p></div>
+<div class="section">
+<h3>Monitoring<a name="Monitoring"></a></h3>
+<p>Monitoring and Operationalizing Falcon is detailed in <a href="./Operability.html">Operability</a>.</p></div>
+<div class="section">
+<h3>Email Notification<a name="Email_Notification"></a></h3>
+<p>Notification for instance completion in Falcon is defined in <a href="./FalconEmailNotification.html">Falcon Email Notification</a>.</p></div>
+<div class="section">
+<h3>Backwards Compatibility<a name="Backwards_Compatibility"></a></h3>
+<p>Backwards compatibility instructions are <a href="./Compatibility.html">detailed here.</a></p></div>
+<div class="section">
+<h3>Proxyuser support<a name="Proxyuser_support"></a></h3>
+<p>Falcon supports impersonation or proxyuser functionality (identical to Hadoop proxyuser capabilities and conceptually similar to Unix 'sudo').</p>
+<p>Proxyuser enables Falcon clients to submit entities on behalf of other users. Falcon will utilize Hadoop core's hadoop-auth module to implement this functionality.</p>
+<p>Because proxyuser is a powerful capability, Falcon provides the following restriction capabilities (similar to Hadoop):</p>
+<p></p>
+<ul>
+<li>Proxyuser is an explicit configuration on per proxyuser user basis.</li>
+<li>A proxyuser user can be restricted to impersonate other users from a set of hosts.</li>
+<li>A proxyuser user can be restricted to impersonate users belonging to a set of groups.</li></ul>
+<p>There are 2 configuration properties needed in runtime properties to set up a proxyuser:</p>
+<ul>
+<li>falcon.service.ProxyUserService.proxyuser.#USER#.hosts: hosts from where the user #USER# can impersonate other users.</li>
+<li>falcon.service.ProxyUserService.proxyuser.#USER#.groups: groups the users being impersonated by user #USER# must belong to.</li></ul>
+<p>If these configurations are not present, impersonation will not be allowed and connection will fail. If more lax security is preferred, the wildcard value * may be used to allow impersonation from any host or of any user, although this is recommended only for testing/development.</p>
+<p>-doAs option via  CLI or doAs query parameter can be appended if using API to enable impersonation.</p></div>
+<div class="section">
+<h3>ImportExport<a name="ImportExport"></a></h3>
+<p>Data Import and Export is detailed in <a href="./ImportExport.html">Data Import and Export</a>.</p></div>
+                  </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container">
+              <div class="row span12">Copyright &copy;                    2013-2016
+                        <a href="http://www.apache.org">Apache Software Foundation</a>.
+            All Rights Reserved.      
+                    
+      </div>
+
+                          
+                <p id="poweredBy" class="pull-right">
+                          <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+      </a>
+              </p>
+        
+                </div>
+    </footer>
+  </body>
+</html>

Added: falcon/site/0.9/FalconEmailNotification.html
URL: http://svn.apache.org/viewvc/falcon/site/0.9/FalconEmailNotification.html?rev=1730448&view=auto
==============================================================================
--- falcon/site/0.9/FalconEmailNotification.html (added)
+++ falcon/site/0.9/FalconEmailNotification.html Mon Feb 15 05:36:56 2016
@@ -0,0 +1,114 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-02-09
+ | Rendered using Apache Maven Fluido Skin 1.3.0
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160209" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Falcon - Falcon Email Notification</title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" src="./js/apache-maven-fluido-1.3.0.min.js"></script>
+
+                          
+        
+<script type="text/javascript">$( document ).ready( function() { $( '.carousel' ).carousel( { interval: 3500 } ) } );</script>
+          
+            </head>
+        <body class="topBarDisabled">
+          
+                        
+                    
+    
+        <div class="container">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                                                                                                <img src="images/falcon-logo.png"  alt="Apache Falcon" width="200px" height="45px"/>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="index.html" title="Falcon">
+        Falcon</a>
+        </li>
+      <li class="divider ">/</li>
+        <li class="">Falcon Email Notification</li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right">Last Published: 2016-02-09</li> <li class="divider pull-right">|</li>
+              <li id="projectVersion" class="pull-right">Version: 0.9</li>
+            
+                            </ul>
+      </div>
+
+      
+                
+        <div id="bodyColumn" >
+                                  
+            <div class="section">
+<h3>Falcon Email Notification<a name="Falcon_Email_Notification"></a></h3>
+<p>Falcon Email notification allows sending email notifications when scheduled feed/process instances complete. Email notification in feed/process entity can be defined as follows:</p>
+<div class="source">
+<pre>
+&lt;process name=&quot;[process name]&quot;&gt;
+    ...
+    &lt;notification type=&quot;email&quot; to=&quot;bob@xyz.com,tom@xyz.com&quot;/&gt;
+    ...
+&lt;/process&gt;
+
+</pre></div>
+<p></p>
+<ul>
+<li><b>type</b>    - specifies about the type of notification. <b>Note:</b> Currently &quot;email&quot; notification type is supported.</li>
+<li><b>to</b>  - specifies the address to send notifications to; multiple recipients may be provided as a comma-separated list.</li></ul>
+<p>Falcon email notification requires some SMTP server configuration to be defined in startup.properties. Following are the values it looks for:</p>
+<ul>
+<li><b>falcon.email.smtp.host</b>   - The host where the email action may find the SMTP server (localhost by default).</li>
+<li><b>falcon.email.smtp.port</b>   - The port to connect to for the SMTP server (25 by default).</li>
+<li><b>falcon.email.from.address</b>    - The from address to be used for mailing all emails (falcon@localhost by default).</li>
+<li><b>falcon.email.smtp.auth</b>   - Boolean property that specifies if authentication is to be done or not. (false by default).</li>
+<li><b>falcon.email.smtp.user</b>   - If authentication is enabled, the username to login as (empty by default).</li>
+<li><b>falcon.email.smtp.password</b>   - If authentication is enabled, the username's password (empty by default).</li></ul>
+<p>Also ensure that email notification plugin is enabled in startup.properties to send email notifications:</p>
+<ul>
+<li><b>monitoring.plugins</b>   - org.apache.falcon.plugin.EmailNotificationPlugin,org.apache.falcon.plugin.DefaultMonitoringPlugin</li></ul></div>
+                  </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container">
+              <div class="row span12">Copyright &copy;                    2013-2016
+                        <a href="http://www.apache.org">Apache Software Foundation</a>.
+            All Rights Reserved.      
+                    
+      </div>
+
+                          
+                <p id="poweredBy" class="pull-right">
+                          <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+      </a>
+              </p>
+        
+                </div>
+    </footer>
+  </body>
+</html>

Added: falcon/site/0.9/FalconNativeScheduler.html
URL: http://svn.apache.org/viewvc/falcon/site/0.9/FalconNativeScheduler.html?rev=1730448&view=auto
==============================================================================
--- falcon/site/0.9/FalconNativeScheduler.html (added)
+++ falcon/site/0.9/FalconNativeScheduler.html Mon Feb 15 05:36:56 2016
@@ -0,0 +1,330 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-02-09
+ | Rendered using Apache Maven Fluido Skin 1.3.0
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160209" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Falcon - Falcon Native Scheduler</title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" src="./js/apache-maven-fluido-1.3.0.min.js"></script>
+
+                          
+        
+<script type="text/javascript">$( document ).ready( function() { $( '.carousel' ).carousel( { interval: 3500 } ) } );</script>
+          
+            </head>
+        <body class="topBarDisabled">
+          
+                        
+                    
+    
+        <div class="container">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                                                                                                <img src="images/falcon-logo.png"  alt="Apache Falcon" width="200px" height="45px"/>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="index.html" title="Falcon">
+        Falcon</a>
+        </li>
+      <li class="divider ">/</li>
+        <li class="">Falcon Native Scheduler</li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right">Last Published: 2016-02-09</li> <li class="divider pull-right">|</li>
+              <li id="projectVersion" class="pull-right">Version: 0.9</li>
+            
+                            </ul>
+      </div>
+
+      
+                
+        <div id="bodyColumn" >
+                                  
+            <div class="section">
+<h2>Falcon Native Scheduler<a name="Falcon_Native_Scheduler"></a></h2></div>
+<div class="section">
+<h3>Overview<a name="Overview"></a></h3>
+<p>Falcon has been using Oozie as its scheduling engine.  While the use of Oozie works reasonably well, there are scenarios where Oozie scheduling is proving to be a limiting factor. In its current form, Falcon relies on Oozie for both scheduling and for workflow execution, due to which the scheduling is limited to time based/cron based scheduling with additional gating conditions on data availability. Also, this imposes restrictions on datasets being periodic in nature. In order to offer better scheduling capabilities, Falcon comes with its own native scheduler.</p></div>
+<div class="section">
+<h3>Capabilities<a name="Capabilities"></a></h3>
+<p>The native scheduler will offer the capabilities offered by Oozie co-ordinator and more. The native scheduler will be built and released over the next few releases of Falcon giving users an opportunity to use it and provide feedback.</p>
+<p>Currently, the native scheduler offers the following capabilities:</p>
+<ol style="list-style-type: decimal">
+<li>Submit and schedule a Falcon process that runs periodically (without data dependency) - It could be a PIG script, oozie workflow, Hive (all the engine types currently supported).</li>
+<li>Monitor/Query/Modify the scheduled process - All applicable entity APIs and instance APIs should work as it does now.  Falcon provides data management functions for feeds declaratively. It allows users to represent feed locations as time-based partition directories on HDFS containing files.</li></ol>
+<p><b>NOTE: Execution order is FIFO. LIFO and LAST_ONLY are not supported yet.</b></p>
+<p>In the near future, Falcon scheduler will provide feature parity with Oozie scheduler and in subsequent releases will provide the following features:</p>
+<ul>
+<li>Periodic, cron-based, calendar-based scheduling.</li>
+<li>Data availability based scheduling.</li>
+<li>External trigger/notification based scheduling.</li>
+<li>Support for periodic/a-periodic datasets.</li>
+<li>Support for optional/mandatory datasets. Option to specify minumum/maximum/exactly-N instances of data to consume.</li>
+<li>Handle dependencies across entities during re-run.</li></ul></div>
+<div class="section">
+<h3>Configuring Native Scheduler<a name="Configuring_Native_Scheduler"></a></h3>
+<p>You can enable native scheduler by making changes to <b><i>$FALCON_HOME/conf/startup.properties</i></b> as follows. You will need to restart Falcon Server for the changes to take effect.</p>
+<div class="source">
+<pre>
+*.dag.engine.impl=org.apache.falcon.workflow.engine.OozieDAGEngine
+*.application.services=org.apache.falcon.security.AuthenticationInitializationService,\
+                        org.apache.falcon.workflow.WorkflowJobEndNotificationService, \
+                        org.apache.falcon.service.ProcessSubscriberService,\
+                        org.apache.falcon.service.FeedSLAMonitoringService,\
+                        org.apache.falcon.service.LifecyclePolicyMap,\
+                        org.apache.falcon.state.store.service.FalconJPAService,\
+                        org.apache.falcon.entity.store.ConfigurationStore,\
+                        org.apache.falcon.rerun.service.RetryService,\
+                        org.apache.falcon.rerun.service.LateRunService,\
+                        org.apache.falcon.metadata.MetadataMappingService,\
+                        org.apache.falcon.service.LogCleanupService,\
+                        org.apache.falcon.service.GroupsService,\
+                        org.apache.falcon.service.ProxyUserService,\
+                        org.apache.falcon.notification.service.impl.JobCompletionService,\
+                        org.apache.falcon.notification.service.impl.SchedulerService,\
+                        org.apache.falcon.notification.service.impl.AlarmService,\
+                        org.apache.falcon.notification.service.impl.DataAvailabilityService,\
+                        org.apache.falcon.execution.FalconExecutionService
+
+</pre></div></div>
+<div class="section">
+<h4>Making the Native Scheduler the default scheduler<a name="Making_the_Native_Scheduler_the_default_scheduler"></a></h4>
+<p>To ensure backward compatibility, even when the native scheduler is enabled, the default scheduler is still Oozie. This means users will be scheduling entities on Oozie scheduler, by default. They will need to explicitly specify the scheduler as native, if they wish to schedule entities using native scheduler.</p>
+<p><a href="#Scheduling_new_entities_on_Native_Scheduler">This section</a> has more details on how to schedule on either of the schedulers.</p>
+<p>If you wish to make the Falcon Native Scheduler your default scheduler and remove Oozie as the scheduler, set the following property in <b><i>$FALCON_HOME/conf/startup.properties</i></b></p>
+<div class="source">
+<pre>
+## If you wish to use Falcon native scheduler as your default scheduler, set the workflow engine to FalconWorkflowEngine instead of OozieWorkflowEngine. ##
+*.workflow.engine.impl=org.apache.falcon.workflow.engine.FalconWorkflowEngine
+
+</pre></div></div>
+<div class="section">
+<h4>Configuring the state store for Native Scheduler<a name="Configuring_the_state_store_for_Native_Scheduler"></a></h4>
+<p>You can configure statestore by making changes to <b><i>$FALCON_HOME/conf/statestore.properties</i></b> as follows. You will need to restart Falcon Server for the changes to take effect.</p>
+<p>Falcon Server needs to maintain state of the entities and instances in a persistent store for the system to be recoverable. Since Prism only federates, it does not need to maintain any state information. Following properties need to be set in statestore.properties of Falcon Servers:</p>
+<div class="source">
+<pre>
+######### StateStore Properties #####
+*.falcon.state.store.impl=org.apache.falcon.state.store.jdbc.JDBCStateStore
+*.falcon.statestore.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
+*.falcon.statestore.jdbc.url=jdbc:derby:data/falcon.db
+# StateStore credentials file where username,password and other properties can be stored securely.
+# Set this credentials file permission 400 and make sure user who starts falcon should only have read permission.
+# Give Absolute path to credentials file along with file name or put in classpath with file name statestore.credentials.
+# Credentials file should be present either in given location or class path, otherwise falcon won't start.
+*.falcon.statestore.credentials.file=
+*.falcon.statestore.jdbc.username=sa
+*.falcon.statestore.jdbc.password=
+*.falcon.statestore.connection.data.source=org.apache.commons.dbcp.BasicDataSource
+# Maximum number of active connections that can be allocated from this pool at the same time.
+*.falcon.statestore.pool.max.active.conn=10
+*.falcon.statestore.connection.properties=
+# Indicates the interval (in milliseconds) between eviction runs.
+*.falcon.statestore.validate.db.connection.eviction.interval=300000
+## The number of objects to examine during each run of the idle object evictor thread.
+*.falcon.statestore.validate.db.connection.eviction.num=10
+## Creates Falcon DB.
+## If set to true, it creates the DB schema if it does not exist. If the DB schema exists is a NOP.
+## If set to false, it does not create the DB schema. If the DB schema does not exist it fails start up.
+*.falcon.statestore.create.db.schema=true
+
+</pre></div>
+<p>The _*.falcon.statestore.jdbc.url_ property in statestore.properties determines the DB and data location. All other properties are common across RDBMS.</p>
+<p><b>NOTE : Although multiple Falcon Servers can share a DB (not applicable for Derby DB), it is recommended that you have different DBs for different Falcon Servers for better performance.</b></p>
+<p>You will need to create the state DB and tables before starting the Falcon Server. To create tables, a tool comes bundled with the Falcon installation. You can use the <i>falcon-db.sh</i> script to create tables in the DB. The script needs to be run only for Falcon Servers and can be run by any user that has execute permission on the script. The script picks up the DB connection details from <b><i>$FALCON_HOME/conf/statestore.properties</i></b>. Ensure that you have granted the right privileges to the user mentioned in statestore.properties_, so the tables can be created.</p>
+<p>You can use the help command to get details on the sub-commands supported:</p>
+<div class="source">
+<pre>
+./bin/falcon-db.sh help
+Hadoop home is set, adding libraries from '/Users/pallavi.rao/falcon/hadoop-2.6.0/bin/hadoop classpath' into falcon classpath
+usage: 
+      Falcon DB initialization tool currently supports Derby DB/ Mysql
+
+      falcondb help : Display usage for all commands or specified command
+
+      falcondb version : Show Falcon DB version information
+
+      falcondb create &lt;OPTIONS&gt; : Create Falcon DB schema
+                      -run             Confirmation option regarding DB schema creation/upgrade
+                      -sqlfile &lt;arg&gt;   Generate SQL script instead of creating/upgrading the DB
+                                       schema
+
+      falcondb upgrade &lt;OPTIONS&gt; : Upgrade Falcon DB schema
+                       -run             Confirmation option regarding DB schema creation/upgrade
+                       -sqlfile &lt;arg&gt;   Generate SQL script instead of creating/upgrading the DB
+                                        schema
+
+
+</pre></div>
+<p>Currently, MySQL and Derby are supported as state stores. We may extend support to other DBs in the future. Falcon has been tested against MySQL v5.5. If you are using MySQL ensure you also copy mysql-connector-java-&lt;version&gt;.jar under <b><i>$FALCON_HOME/server/webapp/falcon/WEB-INF/lib</i></b> and <b><i>$FALCON_HOME/client/lib</i></b></p></div>
+<div class="section">
+<h5>Using Derby as the State Store<a name="Using_Derby_as_the_State_Store"></a></h5>
+<p>Using Derby is ideal for QA and staging setup. Falcon comes bundled with a Derby connector and no explicit setup is required (although you can set it up) in terms creating the DB or tables. For example,</p>
+<div class="source">
+<pre> *.falcon.statestore.jdbc.url=jdbc:derby:data/falcon.db;create=true 
+</pre></div>
+<p>tells Falcon to use the Derby JDBC connector, with data directory, $FALCON_HOME/data/ and DB name 'falcon'. If <i>create=true</i> is specified, you will not need to create a DB up front; a database will be created if it does not exist.</p></div>
+<div class="section">
+<h5>Using MySQL as the State Store<a name="Using_MySQL_as_the_State_Store"></a></h5>
+<p>The jdbc.url property in statestore.properties determines the DB and data location. For example,</p>
+<div class="source">
+<pre> *.falcon.statestore.jdbc.url=jdbc:mysql://localhost:3306/falcon 
+</pre></div>
+<p>tells Falcon to use the MySQL JDBC connector, which is accessible @localhost:3306, with DB name 'falcon'.</p></div>
+<div class="section">
+<h3>Scheduling new entities on Native Scheduler<a name="Scheduling_new_entities_on_Native_Scheduler"></a></h3>
+<p>To schedule an entity (currently only process is supported) using the native scheduler, you need to specify the scheduler in the schedule command as shown below:</p>
+<div class="source">
+<pre>
+$FALCON_HOME/bin/falcon entity -type process -name &lt;process name&gt; -schedule -properties falcon.scheduler:native
+
+</pre></div>
+<p>If Oozie is configured as the default scheduler, you can skip the scheduler option or explicitly set it to <i>oozie</i>, as shown below:</p>
+<div class="source">
+<pre>
+$FALCON_HOME/bin/falcon entity -type process -name &lt;process name&gt; -schedule
+OR
+$FALCON_HOME/bin/falcon entity -type process -name &lt;process name&gt; -schedule -properties falcon.scheduler:oozie
+
+</pre></div>
+<p>If the native scheduler is configured as the default scheduler, then, you can omit the scheduler option, as shown below:</p>
+<div class="source">
+<pre>
+$FALCON_HOME/bin/falcon entity -type process -name &lt;process name&gt; -schedule 
+
+</pre></div></div>
+<div class="section">
+<h3>Migrating entities from Oozie Scheduler to Native Scheduler<a name="Migrating_entities_from_Oozie_Scheduler_to_Native_Scheduler"></a></h3>
+<p>Currently, user will have to delete and re-create entities in order to move across schedulers. Attempting to schedule an already scheduled entity on a different scheduler will result in an error. Note that the history of instances prior to scheduling on native scheduler will not be available via the instance APIs. However, user can retrieve that information using metadata APIs. Native scheduler must be enabled before migrating entities to native scheduler.</p>
+<p><a href="#Configuring_Native_Scheduler">Configuring Native Scheduler</a> has more details on how to enable native scheduler.</p></div>
+<div class="section">
+<h4>Migrating from Oozie to Native Scheduler<a name="Migrating_from_Oozie_to_Native_Scheduler"></a></h4>
+<p></p>
+<ul>
+<li>Delete the entity (process).</li></ul>
+<div class="source">
+<pre>$FALCON_HOME/bin/falcon entity -type process -name &lt;process name&gt; -delete 
+</pre></div>
+<p></p>
+<ul>
+<li>Submit the entity (process) with start time from where the Oozie scheduler left off.</li></ul>
+<div class="source">
+<pre>$FALCON_HOME/bin/falcon entity -type process -submit &lt;path to process xml&gt; 
+</pre></div>
+<p></p>
+<ul>
+<li>Schedule the entity on native scheduler.</li></ul>
+<div class="source">
+<pre> $FALCON_HOME/bin/falcon entity -type process -name &lt;process name&gt; -schedule -properties falcon.scheduler:native 
+</pre></div></div>
+<div class="section">
+<h4>Reverting to Oozie from Native Scheduler<a name="Reverting_to_Oozie_from_Native_Scheduler"></a></h4>
+<p></p>
+<ul>
+<li>Delete the entity (process).</li></ul>
+<div class="source">
+<pre>$FALCON_HOME/bin/falcon entity -type process -name &lt;process name&gt; -delete 
+</pre></div>
+<p></p>
+<ul>
+<li>Submit the entity (process) with start time from where the Native scheduler left off.</li></ul>
+<div class="source">
+<pre>$FALCON_HOME/bin/falcon entity -type process -submit &lt;path to process xml&gt; 
+</pre></div>
+<p></p>
+<ul>
+<li>Schedule the entity on the default scheduler (Oozie).</li></ul>
+<div class="source">
+<pre> $FALCON_HOME/bin/falcon entity -type process -name &lt;process name&gt; -schedule 
+</pre></div></div>
+<div class="section">
+<h4>Differences in API responses between Oozie and Native Scheduler<a name="Differences_in_API_responses_between_Oozie_and_Native_Scheduler"></a></h4>
+<p>Most API responses are similar whether the entity is scheduled via Oozie or via Native scheduler. However, there are a few exceptions and those are listed below.</p></div>
+<div class="section">
+<h5>Rerun API<a name="Rerun_API"></a></h5>
+<p>When a user performs a rerun using Oozie scheduler, Falcon directly reruns the workflow on Oozie and the instance will be moved to 'RUNNING'.</p>
+<p>Example response:</p>
+<div class="source">
+<pre>
+$ falcon instance -rerun processMerlinOozie -start 2016-01-08T12:13Z -end 2016-01-08T12:15Z
+Consolidated Status: SUCCEEDED
+
+Instances:
+Instance		Cluster		SourceCluster		Status		Start		End		Details					Log
+-----------------------------------------------------------------------------------------------
+2016-01-08T12:13Z	ProcessMultipleClustersTest-corp-9706f068	-	RUNNING	2016-01-08T13:03Z	2016-01-08T13:03Z	-	http://8RPCG32.corp.inmobi.com:11000/oozie?job=0001811-160104160825636-oozie-oozi-W
+2016-01-08T12:13Z	ProcessMultipleClustersTest-corp-0b270a1d	-	RUNNING	2016-01-08T13:03Z	2016-01-08T13:03Z	-	http://lda01:11000/oozie?job=0002247-160104115615658-oozie-oozi-W
+
+Additional Information:
+Response: ua1/RERUN
+ua2/RERUN
+Request Id: ua1/871377866@qtp-630572412-35 - 7190c4c8-bacb-4639-8d48-c9e639f544da
+ua2/1554129706@qtp-536122141-13 - bc18127b-1bf8-4ea1-99e6-b1f10ba3a441
+
+</pre></div>
+<p>However, when a user performs a rerun on native scheduler, the instance is scheduled again. This is done intentionally so as to not violate the number of instances running in parallel.  Hence, the user will see the status of the instance as 'READY'.</p>
+<p>Example response:</p>
+<div class="source">
+<pre>
+$ falcon instance -rerun ProcessMultipleClustersTest-agregator-coord16-8f55f59b -start 2016-01-08T12:13Z -end 2016-01-08T12:15Z
+Consolidated Status: SUCCEEDED
+
+Instances:
+Instance		Cluster		SourceCluster		Status		Start		End		Details					Log
+-----------------------------------------------------------------------------------------------
+2016-01-08T12:13Z	ProcessMultipleClustersTest-corp-9706f068	-	READY	2016-01-08T13:03Z	2016-01-08T13:03Z	-	http://8RPCG32.corp.inmobi.com:11000/oozie?job=0001812-160104160825636-oozie-oozi-W
+
+2016-01-08T12:13Z	ProcessMultipleClustersTest-corp-0b270a1d	-	READY	2016-01-08T13:03Z	2016-01-08T13:03Z	-	http://lda01:11000/oozie?job=0002248-160104115615658-oozie-oozi-W
+
+Additional Information:
+Response: ua1/RERUN
+ua2/RERUN
+Request Id: ua1/871377866@qtp-630572412-35 - 8d118d4d-c0ef-4335-a9af-10364498ec4f
+ua2/1554129706@qtp-536122141-13 - c2a3fc50-8b05-47ce-9c85-ca432b96d923
+
+</pre></div></div>
+                  </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container">
+              <div class="row span12">Copyright &copy;                    2013-2016
+                        <a href="http://www.apache.org">Apache Software Foundation</a>.
+            All Rights Reserved.      
+                    
+      </div>
+
+                          
+                <p id="poweredBy" class="pull-right">
+                          <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+      </a>
+              </p>
+        
+                </div>
+    </footer>
+  </body>
+</html>

Added: falcon/site/0.9/FeedSchedule.png
URL: http://svn.apache.org/viewvc/falcon/site/0.9/FeedSchedule.png?rev=1730448&view=auto
==============================================================================
Binary file - no diff available.

Propchange: falcon/site/0.9/FeedSchedule.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: falcon/site/0.9/HDFSDR.html
URL: http://svn.apache.org/viewvc/falcon/site/0.9/HDFSDR.html?rev=1730448&view=auto
==============================================================================
--- falcon/site/0.9/HDFSDR.html (added)
+++ falcon/site/0.9/HDFSDR.html Mon Feb 15 05:36:56 2016
@@ -0,0 +1,125 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-02-09
+ | Rendered using Apache Maven Fluido Skin 1.3.0
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160209" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Falcon - HDFS DR Recipe</title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" src="./js/apache-maven-fluido-1.3.0.min.js"></script>
+
+                          
+        
+<script type="text/javascript">$( document ).ready( function() { $( '.carousel' ).carousel( { interval: 3500 } ) } );</script>
+          
+            </head>
+        <body class="topBarDisabled">
+          
+                        
+                    
+    
+        <div class="container">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                                                                                                <img src="images/falcon-logo.png"  alt="Apache Falcon" width="200px" height="45px"/>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="index.html" title="Falcon">
+        Falcon</a>
+        </li>
+      <li class="divider ">/</li>
+        <li class="">HDFS DR Recipe</li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right">Last Published: 2016-02-09</li> <li class="divider pull-right">|</li>
+              <li id="projectVersion" class="pull-right">Version: 0.9</li>
+            
+                            </ul>
+      </div>
+
+      
+                
+        <div id="bodyColumn" >
+                                  
+            <div class="section">
+<h2>HDFS DR Recipe<a name="HDFS_DR_Recipe"></a></h2></div>
+<div class="section">
+<h3>Overview<a name="Overview"></a></h3>
+<p>Falcon supports HDFS DR recipe to replicate data from source cluster to destination cluster.</p></div>
+<div class="section">
+<h3>Usage<a name="Usage"></a></h3></div>
+<div class="section">
+<h4>Setup cluster definition.<a name="Setup_cluster_definition."></a></h4>
+<div class="source">
+<pre>
+    $FALCON_HOME/bin/falcon entity -submit -type cluster -file /cluster/definition.xml
+   
+</pre></div></div>
+<div class="section">
+<h4>Update recipes properties<a name="Update_recipes_properties"></a></h4>
+<p>Copy HDFS replication recipe properties, workflow and template file from $FALCON_HOME/data-mirroring/hdfs-replication to the accessible    directory path or to the recipe directory path (<b>falcon.recipe.path=&lt;recipe directory path&gt;</b>). <b>&quot;falcon.recipe.path&quot;</b> must be specified    in Falcon conf client.properties. Now update the copied recipe properties file with required attributes to replicate data from source cluster to    destination cluster for HDFS DR.</p></div>
+<div class="section">
+<h4>Submit HDFS DR recipe<a name="Submit_HDFS_DR_recipe"></a></h4>
+<p>After updating the recipe properties file with required attributes in directory path or in falcon.recipe.path,    there are two ways of submitting the HDFS DR recipe:</p>
+<p></p>
+<ul>
+<li>1. Specify Falcon recipe properties file through recipe command line.</li></ul>
+<div class="source">
+<pre>
+    $FALCON_HOME/bin/falcon recipe -name hdfs-replication -operation HDFS_REPLICATION
+    -properties /cluster/hdfs-replication.properties
+   
+</pre></div>
+<p></p>
+<ul>
+<li>2. Use Falcon recipe path specified in Falcon conf client.properties .</li></ul>
+<div class="source">
+<pre>
+    $FALCON_HOME/bin/falcon recipe -name hdfs-replication -operation HDFS_REPLICATION
+   
+</pre></div>
+<p><b>Note:</b> Recipe properties file, workflow file and template file name must match to the recipe name, it must be unique and in the same directory.</p></div>
+                  </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container">
+              <div class="row span12">Copyright &copy;                    2013-2016
+                        <a href="http://www.apache.org">Apache Software Foundation</a>.
+            All Rights Reserved.      
+                    
+      </div>
+
+                          
+                <p id="poweredBy" class="pull-right">
+                          <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+      </a>
+              </p>
+        
+                </div>
+    </footer>
+  </body>
+</html>



Mime
View raw message