Return-Path: X-Original-To: apmail-falcon-commits-archive@minotaur.apache.org Delivered-To: apmail-falcon-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A4A218774 for ; Mon, 15 Feb 2016 05:08:45 +0000 (UTC) Received: (qmail 4560 invoked by uid 500); 15 Feb 2016 05:08:45 -0000 Delivered-To: apmail-falcon-commits-archive@falcon.apache.org Received: (qmail 4523 invoked by uid 500); 15 Feb 2016 05:08:45 -0000 Mailing-List: contact commits-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list commits@falcon.apache.org Received: (qmail 4514 invoked by uid 99); 15 Feb 2016 05:08:44 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2016 05:08:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6B6A6C2280 for ; Mon, 15 Feb 2016 05:08:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.794 X-Spam-Level: * X-Spam-Status: No, score=1.794 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.006] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id X4sxQhrqYINe for ; Mon, 15 Feb 2016 05:08:36 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 365145FB14 for ; Mon, 15 Feb 2016 05:08:36 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 85D59E0F5B for ; Mon, 15 Feb 2016 05:08:35 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 5BDE23A109C for ; Mon, 15 Feb 2016 05:08:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1730446 [2/6] - in /falcon/trunk/releases/0.9: ./ src/ src/site/ src/site/resources/ src/site/resources/images/ src/site/resources/images/logos/ src/site/resources/images/profiles/ src/site/twiki/ src/site/twiki/falconcli/ src/site/twiki/r... Date: Mon, 15 Feb 2016 05:08:34 -0000 To: commits@falcon.apache.org From: pallavi@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160215050835.5BDE23A109C@svn01-us-west.apache.org> Added: falcon/trunk/releases/0.9/src/site/twiki/EntitySpecification.twiki URL: http://svn.apache.org/viewvc/falcon/trunk/releases/0.9/src/site/twiki/EntitySpecification.twiki?rev=1730446&view=auto ============================================================================== --- falcon/trunk/releases/0.9/src/site/twiki/EntitySpecification.twiki (added) +++ falcon/trunk/releases/0.9/src/site/twiki/EntitySpecification.twiki Mon Feb 15 05:08:31 2016 @@ -0,0 +1,985 @@ +---++ Contents + * Cluster Specification + * Feed Specification + * Process Specification + +---++ Cluster Specification +The cluster XSD specification is available here: +A cluster contains different interfaces which are used by Falcon like readonly, write, workflow and messaging. +A cluster is referenced by feeds and processes which are on-boarded to Falcon by its name. + +Following are the tags defined in a cluster.xml: + + + +The colo specifies the colo to which this cluster belongs to and name is the name of the cluster which has to +be unique. + + +---+++ Interfaces + +A cluster has various interfaces as described below: + + + +A readonly interface specifies the endpoint for Hadoop's HFTP protocol, +this would be used in the context of feed replication. + + + + +A write interface specifies the interface to write to hdfs, it's endpoint is the value of fs.defaultFS. +Falcon uses this interface to write system data to hdfs and feeds referencing this cluster are written to hdfs +using the same write interface. + + + + +An execute interface specifies the interface for job tracker, it's endpoint is the value of mapreduce.jobtracker.address. +Falcon uses this interface to submit the processes as jobs on !JobTracker defined here. + + + + +A workflow interface specifies the interface for workflow engine, example of its endpoint is the value for OOZIE_URL. +Falcon uses this interface to schedule the processes referencing this cluster on workflow engine defined here. + + + + +A registry interface specifies the interface for metadata catalog, such as Hive Metastore (or HCatalog). +Falcon uses this interface to register/de-register partitions for a given database and table. Also, +uses this information to schedule data availability events based on partitions in the workflow engine. +Although Hive metastore supports both RPC and HTTP, Falcon comes with an implementation for RPC over thrift. + + + + +A messaging interface specifies the interface for sending feed availability messages, it's endpoint is broker url with tcp address. + +---+++ Locations + +A cluster has a list of locations defined: + + + + +Location has the name and the path, name is the type of locations .Allowed values of name are staging, temp and working. +Path is the hdfs path for each location. +Falcon would use the location to do intermediate processing of entities in hdfs and hence Falcon +should have read/write/execute permission on these locations. +These locations MUST be created prior to submitting a cluster entity to Falcon. +*staging* should have 777 permissions and is a mandatory location .The parent dirs must have execute permissions so multiple +users can write to this location. *working* must have 755 permissions and is a optional location. +If *working* is not specified, falcon creates a sub directory in the *staging* location with 755 perms. +The parent dir for *working* must have execute permissions so multiple +users can read from this location + +---+++ ACL + +A cluster has ACL (Access Control List) useful for implementing permission requirements +and provide a way to set different permissions for specific users or named groups. + + + +ACL indicates the Access control list for this cluster. +owner is the Owner of this entity. +group is the one which has access to read. +permission indicates the permission. + +---+++ Custom Properties + +A cluster has a list of properties: +A key-value pair, which are propagated to the workflow engine. + + + +Ideally JMS impl class name of messaging engine (brokerImplClass) +should be defined here. + +---++ Datasource Specification + +The datasource entity contains connection information required to connect to a data source like MySQL database. +The datasource XSD specification is available here: +A datasource contains read and write interfaces which are used by Falcon to import or export data from or to +datasources respectively. A datasource is referenced by feeds which are on-boarded to Falcon by its name. + +Following are the tags defined in a datasource.xml: + + + + + +The colo specifies the colo to which the datasource belongs to and name is the name of the datasource which has to +be unique. + +---+++ Interfaces + +A datasource has two interfaces as described below: + + + + +A readonly interface specifies the endpoint and protocol to connect to a datasource. +This would be used in the context of import from datasource into HDFS. + + + + + +A write interface specifies the endpoint and protocol to to write to the datasource. +Falcon uses this interface to export data from hdfs to datasource. + + + + SA + + + + + +A credential is associated with an interface (read or write) providing user name and password to authenticate +to the datasource. + + + + SA + hdfs-file-path + + + +The credential can be specified via a password file present in the HDFS. This file should only be accessible by +the user. + +---++ Feed Specification +The Feed XSD specification is available here. +A Feed defines various attributes of feed like feed location, frequency, late-arrival handling and retention policies. +A feed can be scheduled on a cluster, once a feed is scheduled its retention and replication process are triggered in a given cluster. + + + +A feed should have a unique name and this name is referenced by processes as input or output feed. + +---+++ Storage +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. + + + + + + + + +Feed should contain one of the two storage options. Locations on File System or Table in a Catalog. + +---++++ File System Storage + + + + + + + + + + + + + +..... more clusters + +Feed references a cluster by it's name, before submitting a feed all the referenced cluster should be submitted to Falcon. +type: specifies whether the referenced cluster should be treated as a source or target for a feed. A feed can have multiple source and target clusters. If the type of cluster is not specified then the cluster is not considered for replication. +Validity of a feed on cluster specifies duration for which this feed is valid on this cluster. +Retention specifies how long the feed is retained on this cluster and the action to be taken on the feed after the expiry of retention period. +The retention limit is specified by expression frequency(times), ex: if feed should be retained for at least 6 hours then retention's limit="hours(6)". +The field partitionExp contains partition tags. Number of partition tags has to be equal to number of partitions specified in feed schema. A partition tag can be a wildcard(*), a static string or an expression. Atleast one of the strings has to be an expression. +sla specifies sla for the feed on this cluster. This is an optional parameter and sla can be same or different from the +global sla tag (mentioned outside the clusters tag ). This tag provides the user to flexibility to have +different sla for different clusters e.g. in case of replication. If this attribute is missing then the default global +sla is picked from the feed definition. +Location specifies where the feed is available on this cluster. This is an optional parameter and path can be same or different from the global locations tag value ( it is mentioned outside the clusters tag ) . This tag provides the user to flexibility to have feed at different locations on different clusters. If this attribute is missing then the default global location is picked from the feed definition. Also the individual location tags data, stats, meta are optional. + + + + + +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="data" path="/projects/TrafficHourly/${YEAR}-${MONTH}-${DAY}/traffic" +The granularity of date pattern in the path should be at least that of a frequency of a feed. +Other location type which are supported are stats and meta paths, if a process references a feed then the meta and stats +paths are available as a property in a process. + +---++++ Catalog Storage (Table) + +A table tag specifies the table URI in the catalog registry as: + +catalog:$database-name:$table-name#partition-key=partition-value);partition-key=partition-value);* + + +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. + +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. + + + + + + catalog specifies the uri of a Hive table along with the partition spec. + uri="catalog:$database:$table#(partition-key=partition-value);+" + Example: catalog:logs-db:clicks#ds=${YEAR}-${MONTH}-${DAY} + + + + + + +Examples: + + +
+
+ + +---+++ Partitions + + + + + + + +A feed can define multiple partitions, if a referenced cluster defines partitions then the number of partitions in feed has to be equal to or more than the cluster partitions. + +*Note:* This will only apply for !FileSystem storage but not Table storage as partitions are defined and maintained in +Hive (HCatalog) registry. + +---+++ Groups + + + online,bi + +A feed specifies a list of comma separated groups, a group is a logical grouping of feeds and a group is said to be +available if all the feeds belonging to a group are available. The frequency of all the feed which belong to the same group +must be same. + +---+++ Availability Flags + + + _SUCCESS + +An availabilityFlag specifies the name of a file which when present/created in a feeds data directory, +the feed is termed as available. ex: _SUCCESS, if this element is ignored then Falcon would consider the presence of feed's +data directory as feed availability. + +---+++ Frequency + + + minutes(20) + +A feed has a frequency which specifies the frequency by which this feed is generated. +ex: it can be generated every hour, every 5 minutes, daily, weekly etc. +valid frequency type for a feed are minutes, hours, days, months. The values can be negative, zero or positive. + +---+++ SLA + + + + +A feed can have SLA and each SLA has two properties - slaLow and slaHigh. Both slaLow and slaHigh are written using +expressions like frequency. slaLow is intended to serve for alerting for feed instances which are in danger of missing their +availability SLAs. slaHigh is intended to serve for reporting the feeds which missed their SLAs. SLAs are relative to +feed instance time. + +---+++ Import + + + + + + snapshot + + + + id + name + + + + + + + + + +A feed can have an import policy associated with it. The souce name specified the datasource reference to the +datasource entity from which the data will be imported to HDFS. The tableName spcified the table or topic to be +imported from the datasource. The extract type specifies the pull mechanism (full or +incremental extract). Full extract method extracts all the data from the datasource. The incremental extraction +method feature implementation is in progress. The mergeplocy determines how the data is to be layed out on HDFS. +The snapshot layout creates a snapshot of the data on HDFS using the feed's location specification. Fields is used +to specify the projection columns. Feed import from database underneath uses sqoop to achieve the task. Any advanced +Sqoop options can be specified via the arguments. + +---+++ Late Arrival + + + + +A late-arrival specifies the cut-off period till which the feed is expected to arrive late and should be honored be processes referring to it as input feed by rerunning the instances in case the data arrives late with in a cut-off period. +The cut-off period is specified by expression frequency(times), ex: if the feed can arrive late +upto 8 hours then late-arrival's cut-off="hours(8)" + +*Note:* This will only apply for !FileSystem storage but not Table storage until a future time. + + +---+++ Email Notification + + + + +Specifying the notification element with "type" property allows users to receive email notification when a scheduled feed instance completes. +Multiple recipients of an email can be provided as comma separated addresses with "to" property. +To send email notification ensure that SMTP parameters are defined in Falcon startup.properties. +Refer to [[FalconEmailNotification][Falcon Email Notification]] for more details. + + +---+++ ACL + +A feed has ACL (Access Control List) useful for implementing permission requirements +and provide a way to set different permissions for specific users or named groups. + + + +ACL indicates the Access control list for this cluster. +owner is the Owner of this entity. +group is the one which has access to read. +permission indicates the permission. + +---+++ Custom Properties + + + + + + + + + + + + + + + + + + + + + +A key-value pair, which are propagated to the workflow engine. "queueName" and "jobPriority" are special properties +available to user to specify the Hadoop job queue and priority, the same values are used by Falcon's launcher job. +"timeout", "parallel" and "order" are other special properties which decides replication instance's timeout value while +waiting for the feed instance, parallel decides the concurrent replication instances that can run at any given time and +order decides the execution order for replication instances like FIFO, LIFO and LAST_ONLY. +DistCp options can be passed as custom properties, which will be propagated to the DistCp tool. "maxMaps" represents +the maximum number of maps used during replication. "mapBandwidth" represents the bandwidth in MB/s +used by each mapper during replication. "overwrite" represents overwrite destination during replication. +"ignoreErrors" represents ignore failures not causing the job to fail during replication. "skipChecksum" represents +bypassing checksum verification during replication. "removeDeletedFiles" represents deleting the files existing in the +destination but not in source during replication. "preserveBlockSize" represents preserving block size during +replication. "preserveReplicationNumber" represents preserving replication number during replication. +"preservePermission" represents preserving permission during + + +---+++ Lifecycle + + + + + hours(10) + reports + NORMAL + + + + + + + + +lifecycle tag is the new way to define various stages of a feed's lifecycle. In the example above we have defined a +retention-stage using lifecycle tag. You may define lifecycle at global level or a cluster level or both. Cluster level +configuration takes precedence and falcon falls back to global definition if cluster level specification is missing. + + +----++++ Retention Stage +As of now there are two ways to specify retention. One is through the tag in the cluster and another is the +new way through tag in tag. If both are defined for a feed, then the lifecycle tag will be +considered effective and falcon will ignore the tag in the cluster. If there is an invalid configuration of +retention-stage in lifecycle tag, then falcon will *NOT* fall back to retention tag even if it is defined and will +throw validation error. + +In this new method of defining retention you can specify the frequency at which the retention should occur, you can +also define the queue and priority parameters for retention jobs. The default behavior of retention-stage is same as +the existing one which is to delete all instances corresponding to instance-time earlier than the duration provided in +"retention.policy.agebaseddelete.limit" + +Property "retention.policy.agebaseddelete.limit" is a mandatory property and must contain a valid duration e.g. "hours(1)" +Retention frequency is not a mandatory parameter. If user doesn't specify the frequency in the retention stage then +it doesn't fallback to old retention policy frequency. Its default value is set to 6 hours if feed frequency is less +than 6 hours else its set to feed frequency as retention shouldn't be more frequent than data availability to avoid +wastage of compute resources. + +In future, we will allow more customisation like customising how to choose instances to be deleted through this method. + + + +---++ Process Specification +A process defines configuration for a workflow. A workflow is a directed acyclic graph(DAG) which defines the job for the workflow engine. A process definition defines the configurations required to run the workflow job. For example, process defines the frequency at which the workflow should run, the clusters on which the workflow should run, the inputs and outputs for the workflow, how the workflow failures should be handled, how the late inputs should be handled and so on. + +The different details of process are: +---+++ Name +Each process is identified with a unique name. +Syntax: + + +... + + + +---+++ Tags +An optional list of comma separated tags which are used for classification of processes. +Syntax: + +... + consumer=consumer@xyz.com, owner=producer@xyz.com, department=forecasting + + +---+++ Pipelines +An optional list of comma separated word strings, specifies the data processing pipeline(s) to which this process belongs. +Only letters, numbers and underscore are allowed for pipeline string. +Syntax: + +... + test_Pipeline, dataReplication, clickStream_pipeline + + +---+++ Cluster +The cluster on which the workflow should run. A process should contain one or more clusters. Cluster definition for the cluster name gives the end points for workflow execution, name node, job tracker, messaging and so on. Each cluster inturn has validity mentioned, which tell the times between which the job should run on that specified cluster. +Syntax: + + +... + + + + + + + + .... + .... + + +... + + + +---+++ Parallel +Parallel defines how many instances of the workflow can run concurrently. It should be a positive integer > 0. +For example, parallel of 1 ensures that only one instance of the workflow can run at a time. The next instance will start only after the running instance completes. +Syntax: + + +... + [parallel] +... + + + +---+++ Order +Order defines the order in which the ready instances are picked up. The possible values are FIFO(First In First Out), LIFO(Last In First Out), and ONLYLAST(Last Only). +Syntax: + + +... + [order] +... + + + +---+++ Timeout +A optional Timeout specifies the maximum time an instance waits for a dataset before being killed by the workflow engine, a time out is specified like frequency. +If timeout is not specified, falcon computes a default timeout for a process based on its frequency, which is six times of the frequency of process or 30 minutes if computed timeout is less than 30 minutes. + + +... + [timeunit]([frequency]) +... + + + +---+++ Frequency +Frequency defines how frequently the workflow job should run. For example, hours(1) defines the frequency as hourly, days(7) defines weekly frequency. The values for timeunit can be minutes/hours/days/months and the frequency number should be a positive integer > 0. +Syntax: + + +... + [timeunit]([frequency]) +... + + + +---+++ SLA + + + +A process can have SLA which is defined by 2 optional attributes - shouldStartIn and shouldEndIn. All the attributes +are written using expressions like frequency. shouldStartIn is the time by which the process should have started. +shouldEndIn is the time by which the process should have finished. + + +---+++ Validity +Validity defines how long the workflow should run. It has 3 components - start time, end time and timezone. Start time and end time are timestamps defined in yyyy-MM-dd'T'HH:mm'Z' format and should always be in UTC. Timezone is used to compute the next instances starting from start time. The workflow will start at start time and end before end time specified on a given cluster. So, there will not be a workflow instance at end time. +Syntax: + + +... + +... + + + +Examples: + + +... + days(1) + +... + + +The daily workflow will start on Jan 1st 2012 at 00:40 UTC, it will run at 40th minute of every hour and the last instance will be at March 31st 2012 at 23:40 UTC. + + + +... + hours(1) + +... + + +The hourly workflow will start on March 11th 2012 at 00:40 PST, the next instances will be at 01:40 PST, 03:40 PDT, 04:40 PDT and so on till 23:40 PDT. So, there will be just 23 instances of the workflow for March 11th 2012 because of DST switch. + +---+++ Inputs +Inputs define the input data for the workflow. The workflow job will start executing only after the schedule time and when all the inputs are available. There can be 0 or more inputs and each of the input maps to a feed. The path and frequency of input data is picked up from feed definition. Each input should also define start and end instances in terms of [[FalconDocumentation][EL expressions]] and can optionally specify specific partition of input that the workflow requires. The components in partition should be subset of partitions defined in the feed. + +For each input, Falcon will create a property with the input name that contains the comma separated list of input paths. This property can be used in workflow actions like pig scripts and so on. + +Syntax: + + +... + + + ... + +... + + + +Example: + + +... + + + hours(1) + + + ... + +... + + +... + + + ... + +... + + +The input for the workflow is a hourly feed and takes 0th and 1st hour data of today(the day when the workflow runs). +If the workflow is running for 2012-03-01T06:40Z, the inputs are /projects/bootcamp/feed1/2012-03-01-00/*/US and +/projects/bootcamp/feed1/2012-03-01-01/*/US. The property for this input is +input1=/projects/bootcamp/feed1/2012-03-01-00/*/US,/projects/bootcamp/feed1/2012-03-01-01/*/US + +Also, feeds with Hive table storage can be used as inputs to a process. Several parameters from inputs are passed as +params to the user workflow or pig script. + + + ${wf:conf('falcon_input_database')} - database name associated with the feed for a given input + ${wf:conf('falcon_input_table')} - table name associated with the feed for a given input + ${wf:conf('falcon_input_catalog_url')} - Hive metastore URI for this input feed + ${wf:conf('falcon_input_partition_filter_pig')} - value of ${coord:dataInPartitionFilter('$input', 'pig')} + ${wf:conf('falcon_input_partition_filter_hive')} - value of ${coord:dataInPartitionFilter('$input', 'hive')} + ${wf:conf('falcon_input_partition_filter_java')} - value of ${coord:dataInPartitionFilter('$input', 'java')} + + +*NOTE:* input is the name of the input configured in the process, which is input.getName(). + + +Example workflow configuration: + + + + + falcon_input_database + falcon_db + + + falcon_input_table + input_table + + + falcon_input_catalog_url + thrift://localhost:29083 + + + falcon_input_storage_type + TABLE + + + feedInstancePaths + hcat://localhost:29083/falcon_db/output_table/ds=2012-04-21-00 + + + falcon_input_partition_filter_java + (ds='2012-04-21-00') + + + falcon_input_partition_filter_hive + (ds='2012-04-21-00') + + + falcon_input_partition_filter_pig + (ds=='2012-04-21-00') + + ... + + + + +---+++ Optional Inputs +User can mention one or more inputs as optional inputs. In such cases the job does not wait on those inputs which are +mentioned as optional. If they are present it considers them otherwise continue with the compulsory ones. +Example: + + +... + + + hours(1) + + + ... + +... + + +... + + + + ... + +... + + + +*Note:* This is only supported for !FileSystem storage but not Table storage at this point. + + +---+++ Outputs +Outputs define the output data that is generated by the workflow. A process can define 0 or more outputs. Each output is mapped to a feed and the output path is picked up from feed definition. The output instance that should be generated is specified in terms of [[FalconDocumentation][EL expression]]. + +For each output, Falcon creates a property with output name that contains the path of output data. This can be used in workflows to store in the path. +Syntax: + + +... + + + ... + +... + + + +Example: + + +... + days(1) + + + ... + +... + + +... + + + ... + +... + + +The output of the workflow is feed instance for today. If the workflow is running for 2012-03-01T06:40Z, +the workflow generates output /projects/bootcamp/feed2/2012-03-01. The property for this output that is available +for workflow is: output1=/projects/bootcamp/feed2/2012-03-01 + +Also, feeds with Hive table storage can be used as outputs to a process. Several parameters from outputs are passed as +params to the user workflow or pig script. + + ${wf:conf('falcon_output_database')} - database name associated with the feed for a given output + ${wf:conf('falcon_output_table')} - table name associated with the feed for a given output + ${wf:conf('falcon_output_catalog_url')} - Hive metastore URI for the given output feed + ${wf:conf('falcon_output_dataout_partitions')} - value of ${coord:dataOutPartitions('$output')} + + +*NOTE:* output is the name of the output configured in the process, which is output.getName(). + + +Example workflow configuration: + + + + + falcon_output_database + falcon_db + + + falcon_output_table + output_table + + + falcon_output_catalog_url + thrift://localhost:29083 + + + falcon_output_storage_type + TABLE + + + feedInstancePaths + hcat://localhost:29083/falcon_db/output_table/ds=2012-04-21-00 + + + falcon_output_dataout_partitions + 'ds=2012-04-21-00' + + .... + + + +---+++ Custom Properties +The properties are key value pairs that are passed to the workflow. These properties are optional and can be used +in workflow to parameterize the workflow. +Syntax: + + +... + + + ... + +... + + + +The following are some special properties, which when present are used by the Falcon's launcher job, the same property is also available in workflow which can be used to propagate to pig or M/R job. + + + + + + + +---+++ Workflow + +The workflow defines the workflow engine that should be used and the path to the workflow on hdfs. +The workflow definition on hdfs contains the actual job that should run and it should confirm to +the workflow specification of the engine specified. The libraries required by the workflow should +be in lib folder inside the workflow path. + +The properties defined in the cluster and cluster properties(nameNode and jobTracker) will also +be available for the workflow. + +There are 3 engines supported today. + +---++++ Oozie + +As part of oozie workflow engine support, users can embed a oozie workflow. +Refer to oozie [[http://oozie.apache.org/docs/4.0.1/DG_Overview.html][workflow overview]] and +[[http://oozie.apache.org/docs/4.0.1/WorkflowFunctionalSpec.html][workflow specification]] for details. + +Syntax: + + +... + +... + + + +Example: + + +... + +... + + + +This defines the workflow engine to be oozie and the workflow xml is defined at +/projects/bootcamp/workflow/workflow.xml. The libraries are at /projects/bootcamp/workflow/lib. + +---++++ Pig + +Falcon also adds the Pig engine which enables users to embed a Pig script as a process. + +Example: + + +... + +... + + + +This defines the workflow engine to be pig and the pig script is defined at +/projects/bootcamp/pig.script. + +Feeds with Hive table storage will send one more parameter apart from the general ones: +$input_filter + +---++++ Hive + +Falcon also adds the Hive engine as part of Hive Integration which enables users to embed a Hive script as a process. +This would enable users to create materialized queries in a declarative way. + +Example: + + +... + +... + + + +This defines the workflow engine to be hive and the hive script is defined at +/projects/bootcamp/hive-script.hql. + +Feeds with Hive table storage will send one more parameter apart from the general ones: +$input_filter + +---+++ Retry +Retry policy defines how the workflow failures should be handled. Three retry policies are defined: periodic, exp-backoff(exponential backoff) and final. Depending on the delay and number of attempts, the workflow is re-tried after specific intervals. +Syntax: + + +... + +... + + + +Examples: + + +... + +... + + +The workflow is re-tried after 10 mins, 20 mins and 30 mins. With exponential backoff, the workflow will be re-tried after 10 mins, 20 mins and 40 mins. + +---+++ Late data +Late data handling defines how the late data should be handled. Each feed is defined with a late cut-off value which specifies the time till which late data is valid. For example, late cut-off of hours(6) means that data for nth hour can get delayed by upto 6 hours. Late data specification in process defines how this late data is handled. + +Late data policy defines how frequently check is done to detect late data. The policies supported are: backoff, exp-backoff(exponention backoff) and final(at feed's late cut-off). The policy along with delay defines the interval at which late data check is done. + +Late input specification for each input defines the workflow that should run when late data is detected for that input. + +Syntax: + + +... + + + ... + +... + + + +Example: + + +... + hours(1) + +... + + +... + + + ... + + + + ... + +... + + +This late handling specifies that late data detection should run at feed's late cut-off which is 6 hours in this case. If there is late data, Falcon should run the workflow specified at /projects/bootcamp/workflow/lateinput1/workflow.xml + +*Note:* This is only supported for !FileSystem storage but not Table storage at this point. + +---+++ Email Notification + + + + +Specifying the notification element with "type" property allows users to receive email notification when a scheduled process instance completes. +Multiple recipients of an email can be provided as comma separated addresses with "to" property. +To send email notification ensure that SMTP parameters are defined in Falcon startup.properties. +Refer to [[FalconEmailNotification][Falcon Email Notification]] for more details. + +---+++ ACL + +A process has ACL (Access Control List) useful for implementing permission requirements +and provide a way to set different permissions for specific users or named groups. + + + +ACL indicates the Access control list for this cluster. +owner is the Owner of this entity. +group is the one which has access to read. +permission indicates the permission. + Added: falcon/trunk/releases/0.9/src/site/twiki/FalconCLI.twiki URL: http://svn.apache.org/viewvc/falcon/trunk/releases/0.9/src/site/twiki/FalconCLI.twiki?rev=1730446&view=auto ============================================================================== --- falcon/trunk/releases/0.9/src/site/twiki/FalconCLI.twiki (added) +++ falcon/trunk/releases/0.9/src/site/twiki/FalconCLI.twiki Mon Feb 15 05:08:31 2016 @@ -0,0 +1,534 @@ +---+FalconCLI + +FalconCLI is a interface between user and Falcon. It is a command line utility provided by Falcon. FalconCLI supports Entity Management, Instance Management and Admin operations.There is a set of web services that are used by FalconCLI to interact with Falcon. + +---++Common CLI Options + +---+++Falcon URL + +Optional -url option indicating the URL of the Falcon system to run the command against can be provided. If not mentioned it will be picked from the system environment variable FALCON_URL. If FALCON_URL is not set then it will be picked from client.properties file. If the option is not +provided and also not set in client.properties, Falcon CLI will fail. + +---+++Proxy user support + +The -doAs option allows the current user to impersonate other users when interacting with the Falcon system. The current user must be configured as a proxyuser in the Falcon system. The proxyuser configuration may restrict from +which hosts a user may impersonate users, as well as users of which groups can be impersonated. + +Proxyuser support described here. + +---+++Debug Mode + +If you export FALCON_DEBUG=true then the Falcon CLI will output the Web Services API details used by any commands you execute. This is useful for debugging purposes to or see how the Falcon CLI works with the WS API. +Alternately, you can specify '-debug' through the CLI arguments to get the debug statements. +Example: +$FALCON_HOME/bin/falcon entity -submit -type cluster -file /cluster/definition.xml -debug + +---++Entity Management Operations + +---+++Submit + +Submit option is used to set up entity definition. + +Usage: +$FALCON_HOME/bin/falcon entity -submit -type [cluster|datasource|feed|process] -file + +Example: +$FALCON_HOME/bin/falcon entity -submit -type cluster -file /cluster/definition.xml + +Note: The url option in the above and all subsequent commands is optional. If not mentioned it will be picked from client.properties file. If the option is not provided and also not set in client.properties, Falcon CLI will fail. + +---+++Schedule + +Once submitted, an entity can be scheduled using schedule option. Process and feed can only be scheduled. + +Usage: +$FALCON_HOME/bin/falcon entity -type [process|feed] -name <> -schedule + +Optional Arg : -skipDryRun. When this argument is specified, Falcon skips oozie dryrun. + +Example: +$FALCON_HOME/bin/falcon entity -type process -name sampleProcess -schedule + +---+++Suspend + +Suspend on an entity results in suspension of the oozie bundle that was scheduled earlier through the schedule function. No further instances are executed on a suspended entity. Only schedule-able entities(process/feed) can be suspended. + +Usage: +$FALCON_HOME/bin/falcon entity -type [feed|process] -name <> -suspend + +---+++Resume + +Puts a suspended process/feed back to active, which in turn resumes applicable oozie bundle. + +Usage: + $FALCON_HOME/bin/falcon entity -type [feed|process] -name <> -resume + +---+++Delete + +Delete removes the submitted entity definition for the specified entity and put it into the archive. + +Usage: +$FALCON_HOME/bin/falcon entity -type [cluster|datasource|feed|process] -name <> -delete + +---+++List + +Entities of a particular type can be listed with list sub-command. + +Usage: +$FALCON_HOME/bin/falcon entity -list + +Optional Args : -fields <> +-type <<[cluster|datasource|feed|process],[cluster|datasource|feed|process]>> +-nameseq <> -tagkeys <> +-filterBy <> -tags <> +-orderBy <> -sortOrder <> -offset 0 -numResults 10 + +Optional params described here. + + +---+++Summary + +Summary of entities of a particular type and a cluster will be listed. Entity summary has N most recent instances of entity. + +Usage: +$FALCON_HOME/bin/falcon entity -type [feed|process] -summary + +Optional Args : -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" -fields <> +-filterBy <> -tags <> +-orderBy <> -sortOrder <> -offset 0 -numResults 10 -numInstances 7 + +Optional params described here. + +---+++Update + +Update operation allows an already submitted/scheduled entity to be updated. Cluster and datasource updates are +currently not allowed. + +Usage: +$FALCON_HOME/bin/falcon entity -type [feed|process] -name <> -update -file <> + +Optional Arg : -skipDryRun. When this argument is specified, Falcon skips oozie dryrun. + +Example: +$FALCON_HOME/bin/falcon entity -type process -name HourlyReportsGenerator -update -file /process/definition.xml + +---+++Touch + +Force Update operation allows an already submitted/scheduled entity to be updated. + +Usage: +$FALCON_HOME/bin/falcon entity -type [feed|process] -name <> -touch + +Optional Arg : -skipDryRun. When this argument is specified, Falcon skips oozie dryrun. + +---+++Status + +Status returns the current status of the entity. + +Usage: +$FALCON_HOME/bin/falcon entity -type [cluster|datasource|feed|process] -name <> -status + +---+++Dependency + +With the use of dependency option, we can list all the entities on which the specified entity is dependent. +For example for a feed, dependency return the cluster name and for process it returns all the input feeds, +output feeds and cluster names. + +Usage: +$FALCON_HOME/bin/falcon entity -type [cluster|datasource|feed|process] -name <> -dependency + +---+++Definition + +Definition option returns the entity definition submitted earlier during submit step. + +Usage: +$FALCON_HOME/bin/falcon entity -type [cluster|datasource|feed|process] -name <> -definition + + +---+++Lookup + +Lookup option tells you which feed does a given path belong to. This can be useful in several scenarios e.g. generally you would want to have a single definition for common feeds like metadata with same location +otherwise it can result in a problem (different retention durations can result in surprises for one team) If you want to check if there are multiple definitions of same metadata then you can pick +an instance of that and run through the lookup command like below. + +Usage: +$FALCON_HOME/bin/falcon entity -type feed -lookup -path /data/projects/my-hourly/2014/10/10/23/ + +If you have multiple feeds with location as /data/projects/my-hourly/${YEAR}/${MONTH}/${DAY}/${HOUR} then this command will return all of them. + + +---+++SLAAlert + +Since: 0.8 + + +This command lists all the feed instances which have missed sla and are still not available. If a feed instance missed +sla but is now available, then it will not be reported in results. The purpose of this API is alerting and hence it + doesn't return feed instances which missed SLA but are available as they don't require any action. + +* Currently sla monitoring is supported only for feeds. + +* Option end is optional and will default to current time if missing. + +* Option name is optional, if provided only instances of that feed will be considered. + +Usage: + +*Example 1* + +*$FALCON_HOME/bin/falcon entity -type feed -start 2014-09-05T00:00Z -slaAlert -end 2016-05-03T00:00Z -colo local* + +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T11:59Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:00Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:01Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:02Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:03Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:04Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:05Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:06Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:07Z, tags: Missed SLA High +name: out, type: FEED, cluster: local, instanceTime: 2015-09-26T12:08Z, tags: Missed SLA Low + + +Response: default/Success! + +Request Id: default/216978070@qtp-830047511-4 - f5a6c129-ab42-4feb-a2bf-c3baed356248 + +*Example 2* + +*$FALCON_HOME/bin/falcon entity -type feed -start 2014-09-05T00:00Z -slaAlert -end 2016-05-03T00:00Z -colo local -name in* + +name: in, type: FEED, cluster: local, instanceTime: 2015-09-26T06:00Z, tags: Missed SLA High + +Response: default/Success! + +Request Id: default/1580107885@qtp-830047511-7 - f16cbc51-5070-4551-ad25-28f75e5e4cf2 + + +---++Instance Management Options + +---+++Kill + +Kill sub-command is used to kill all the instances of the specified process whose nominal time is between the given start time and end time. + +Note: +1. The start time and end time needs to be specified in TZ format. +Example: 01 Jan 2012 01:00 => 2012-01-01T01:00Z + +3. Process name is compulsory parameter for each instance management command. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -kill -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" + +---+++Suspend + +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. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -suspend -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" + +---+++Continue + +Continue option is used to continue the failed workflow instance. This option is valid only for process instances in terminal state, i.e. KILLED or FAILED. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -continue -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" + +---+++Rerun + +Rerun option is used to rerun instances of a given process. On issuing a rerun, by default the execution resumes from the last failed node in the workflow. This option is valid only for process instances in terminal state, i.e. SUCCEEDED, KILLED or FAILED. +If one wants to forcefully rerun the entire workflow, -force should be passed along with -rerun +Additionally, you can also specify properties to override via a properties file and this will be prioritized over force option in case of contradiction. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -rerun -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" [-force] [-file <>] + +---+++Resume + +Resume option is used to resume any instance that is in suspended state. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -resume -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" + +---+++Status + +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 time is also returned. Log location gives the oozie workflow url +If the instance is in WAITING state, missing dependencies are listed. +The job urls are populated for all actions of user workflow and non-succeeded actions of the main-workflow. The user then need not go to the underlying scheduler to get the job urls when needed to debug an issue in the job. + +Example : Suppose a process has 3 instance, one has succeeded,one is in running state and other one is waiting, the expected output is: + +{"status":"SUCCEEDED","message":"getStatus is successful","instances":[{"instance":"2012-05-07T05:02Z","status":"SUCCEEDED","logFile":"http://oozie-dashboard-url"},{"instance":"2012-05-07T05:07Z","status":"RUNNING","logFile":"http://oozie-dashboard-url"}, {"instance":"2010-01-02T11:05Z","status":"WAITING"}] + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -status + +Optional Args : -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" -colo <> +-filterBy <> -lifecycle <> +-orderBy field -sortOrder <> -offset 0 -numResults 10 + + Optional params described here. + +---+++List + +List option via CLI can be used to get single or multiple instances. If the instance is not yet materialized but is within the process validity range, WAITING is returned as the state. Instance time is also returned. Log location gives the oozie workflow url +If the instance is in WAITING state, missing dependencies are listed + +Example : Suppose a process has 3 instance, one has succeeded,one is in running state and other one is waiting, the expected output is: + +{"status":"SUCCEEDED","message":"getStatus is successful","instances":[{"instance":"2012-05-07T05:02Z","status":"SUCCEEDED","logFile":"http://oozie-dashboard-url"},{"instance":"2012-05-07T05:07Z","status":"RUNNING","logFile":"http://oozie-dashboard-url"}, {"instance":"2010-01-02T11:05Z","status":"WAITING"}]} + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -list + +Optional Args : -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" +-colo <> -lifecycle <> +-filterBy <> -orderBy field -sortOrder <> -offset 0 -numResults 10 + +Optional params described here. + +---+++Summary + +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. +The unscheduled instances between the specified time period are included as UNSCHEDULED in the output to provide more clarity. + +Example : Suppose a process has 3 instance, one has succeeded,one is in running state and other one is waiting, the expected output is: + +{"status":"SUCCEEDED","message":"getSummary is successful", instancesSummary:[{"cluster": <> "map":[{"SUCCEEDED":"1"}, {"WAITING":"1"}, {"RUNNING":"1"}]}]} + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -summary + +Optional Args : -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" -colo <> +-filterBy <> -lifecycle <> +-orderBy field -sortOrder <> + +Optional params described here. + +---+++Running + +Running option provides all the running instances of the mentioned process. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -running + +Optional Args : -colo <> -lifecycle <> +-filterBy <> -orderBy <> -sortOrder <> -offset 0 -numResults 10 + +Optional params described here. + +---+++FeedInstanceListing + +Get falcon feed instance availability. + +Usage: +$FALCON_HOME/bin/falcon instance -type feed -name <> -listing + +Optional Args : -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" +-colo <> + +Optional params described here. + +---+++Logs + +Get logs for instance actions + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -logs + +Optional Args : -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" -runid <> +-colo <> -lifecycle <> +-filterBy <> -orderBy field -sortOrder <> -offset 0 -numResults 10 + +Optional params described here. + +---+++LifeCycle + +Describes list of life cycles of a entity , for feed it can be replication/retention and for process it can be execution. +This can be used with instance management options. Default values are replication for feed and execution for process. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -status -lifecycle <> -start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" + +---+++Triage + +Given a feed/process instance this command traces it's ancestors to find what all ancestors have failed. It's useful if +lot of instances are failing in a pipeline as it then finds out the root cause of the pipeline being stuck. + +Usage: +$FALCON_HOME/bin/falcon instance -triage -type <> -name <> -start "yyyy-MM-dd'T'HH:mm'Z'" + +---+++Params + +Displays the workflow params of a given instance. Where start time is considered as nominal time of that instance and end time won't be considered. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -params -start "yyyy-MM-dd'T'HH:mm'Z'" + + + +---+++Dependency +Display the dependent instances which are dependent on the given instance. For example for a given process instance it will +list all the input feed instances(if any) and the output feed instances(if any). + +An example use case of this command is as follows: +Suppose you find out that the data in a feed instance was incorrect and you need to figure out which all process instances +consumed this feed instance so that you can reprocess them after correcting the feed instance. You can give the feed instance +and it will tell you which process instance produced this feed and which all process instances consumed this feed. + +NOTE: +1. instanceTime must be a valid instanceTime e.g. instanceTime of a feed should be in it's validity range on applicable clusters, + and it should be in the range of instances produced by the producer process(if any) + +2. For processes with inputs like latest() which vary with time the results are not guaranteed to be correct. + +Usage: +$FALCON_HOME/bin/falcon instance -type <> -name <> -params -instanceTime "yyyy-MM-dd'T'HH:mm'Z'" + +For example: +$FALCON_HOME/bin/falcon instance -dependency -type feed -name out -instanceTime 2014-12-15T00:00Z +name: producer, type: PROCESS, cluster: local, instanceTime: 2014-12-15T00:00Z, tags: Output +name: consumer, type: PROCESS, cluster: local, instanceTime: 2014-12-15T00:03Z, tags: Input +name: consumer, type: PROCESS, cluster: local, instanceTime: 2014-12-15T00:04Z, tags: Input +name: consumer, type: PROCESS, cluster: local, instanceTime: 2014-12-15T00:02Z, tags: Input +name: consumer, type: PROCESS, cluster: local, instanceTime: 2014-12-15T00:05Z, tags: Input + + +Response: default/Success! + +Request Id: default/1125035965@qtp-503156953-7 - 447be0ad-1d38-4dce-b438-20f3de69b172 + + +Optional params described here. + +---++ Metadata Lineage Options + +---+++Lineage + +Returns the relationship between processes and feeds in a given pipeline in dot format. +You can use the output and view a graphical representation of DAG using an online graphviz viewer like this. + + +Usage: + +$FALCON_HOME/bin/falcon metadata -lineage -pipeline my-pipeline + +pipeline is a mandatory option. + + + +---+++ Vertex + +Get the vertex with the specified id. + +Usage: +$FALCON_HOME/bin/falcon metadata -vertex -id <> + +Example: +$FALCON_HOME/bin/falcon metadata -vertex -id 4 + +---+++ Vertices + +Get all vertices for a key index given the specified value. + +Usage: +$FALCON_HOME/bin/falcon metadata -vertices -key <> -value <> + +Example: +$FALCON_HOME/bin/falcon metadata -vertices -key type -value feed-instance + +---+++ Vertex Edges + +Get the adjacent vertices or edges of the vertex with the specified direction. + +Usage: +$FALCON_HOME/bin/falcon metadata -edges -id <> -direction <> + +Example: +$FALCON_HOME/bin/falcon metadata -edges -id 4 -direction both +$FALCON_HOME/bin/falcon metadata -edges -id 4 -direction inE + +---+++ Edge + +Get the edge with the specified id. + +Usage: +$FALCON_HOME/bin/falcon metadata -edge -id <> + +Example: +$FALCON_HOME/bin/falcon metadata -edge -id Q9n-Q-5g + +---++ Metadata Discovery Options + +---+++ List + +Lists of all dimensions of given type. If the user provides optional param cluster, only the dimensions related to the cluster are listed. +Usage: +$FALCON_HOME/bin/falcon metadata -list -type [cluster_entity|datasource_entity|feed_entity|process_entity|user|colo|tags|groups|pipelines|replication_metrics] + +Optional Args : -cluster <> + +Example: +$FALCON_HOME/bin/falcon metadata -list -type process_entity -cluster primary-cluster +$FALCON_HOME/bin/falcon metadata -list -type tags + + +To display replication metrics from recipe based replication process and from feed replication. +Usage: +$FALCON_HOME/bin/falcon metadata -list -type replication_metrics -process/-feed +Optional Args : -numResults <> + +Example: +$FALCON_HOME/bin/falcon metadata -list -type replication_metrics -process hdfs-replication +$FALCON_HOME/bin/falcon metadata -list -type replication_metrics -feed fs-replication + + +---+++ Relations + +List all dimensions related to specified Dimension identified by dimension-type and dimension-name. +Usage: +$FALCON_HOME/bin/falcon metadata -relations -type [cluster_entity|feed_entity|process_entity|user|colo|tags|groups|pipelines] -name <> + +Example: +$FALCON_HOME/bin/falcon metadata -relations -type process_entity -name sample-process + + +---++Admin Options + +---+++Help + +Usage: +$FALCON_HOME/bin/falcon admin -help + +---+++Version + +Version returns the current version of Falcon installed. +Usage: +$FALCON_HOME/bin/falcon admin -version + +---+++Status + +Status returns the current state of Falcon (running or stopped). +Usage: +$FALCON_HOME/bin/falcon admin -status + + +---++ Recipe Options + +---+++ Submit Recipe + +Submit the specified recipe. + +Usage: +$FALCON_HOME/bin/falcon recipe -name +Name of the recipe. User should have defined -template.xml and .properties in the path specified by falcon.recipe.path in client.properties file. falcon.home path is used if its not specified in client.properties file. +If its not specified in client.properties file and also if files cannot be found at falcon.home, Falcon CLI will fail. + +Optional Args : -tool +Falcon provides a base tool that recipes can override. If this option is not specified the default Recipe Tool +RecipeTool defined is used. This option is required if user defines his own recipe tool class. + +Example: +$FALCON_HOME/bin/falcon recipe -name hdfs-replication +