1.Debug模式
在这一模式下,Falcon CLI将能够输出Web Services API中关于你正在执行命令的详情。
例如:
执行成功:
执行失败:
Entity Management Operations
1.submit
用途:用于实体定义。
用法:
$FALCON_HOME/bin/falcon entity -submit -type [cluster|datasource|feed|process] -file <entity-definition.xml>
2.Schedule
用途:实体提交后,Schedule可以对实体进行执行计划安排(Feed和Process)。
用法:
$FALCON_HOME/bin/falcon entity -type [process|feed] -name <<name>> -schedule
可选参数:Optional Arg : -skipDryRun. When this argument is specified, Falcon skips oozie dryrun.(后序理解)
3.Suspend
用途:用于被Schedule的过早的实体,没有任何的事例可以运行在暂停的实体上,只有能够被Schedule的实体才能被暂停。
用法:
Usage: $FALCON_HOME/bin/falcon entity -type [feed|process] -name <<name>> -suspend
4.Resume
用途:将暂停的实体返回到活动状态,oozie继续调用。
用法:
Usage: $FALCON_HOME/bin/falcon entity -type [feed|process] -name <<name>> -resume
5.Delete
用途:用于删除已经提交的实体定义和将它归档。
用法:
$FALCON_HOME/bin/falcon entity -type [cluster|datasource|feed|process] -name <<name>> -delete
6.List
用途:用于列出特定类型的实体
用法:
$FALCON_HOME/bin/falcon entity -list
参数:-fields <<field1,field2>> -type <<[cluster|datasource|feed|process],[cluster|datasource|feed|process]>> -nameseq <<namesubsequence>> -tagkeys <<tagkeyword1,tagkeyword2>> -filterBy <<field1:value1,field2:value2>> -tags <<tagkey=tagvalue,tagkey=tagvalue>> -orderBy <<field>> -sortOrder <<sortOrder>> -offset 0 -numResults 10
(后序理解)
7.Summary
用途:一个Cluster上的特定类型的实体概要
用法:$FALCON_HOME/bin/falcon entity -type [feed|process] -summary
参数:-start "yyyy-MM-dd'T'HH:mm'Z'" -end "yyyy-MM-dd'T'HH:mm'Z'" -fields <<field1,field2>> -filterBy <<field1:value1,field2:value2>> -tags <<tagkey=tagvalue,tagkey=tagvalue>> -orderBy <<field>> -sortOrder <<sortOrder>> -offset 0 -numResults 10 -numInstances 7
8.Update
用途:允许将早已经提交的(运行的)的实体进行修改,Cluster和Datasource暂时不支持修改。
用法:$FALCON_HOME/bin/falcon entity -type [feed|process] -name <<name>> -update -file <<path_to_file>>
可选参数:Optional Arg : -skipDryRun. When this argument is specified, Falcon skips oozie dryrun.(后序理解)
9.Touch
用途:强制将已经提交的实体设置成可以进行更新
用法:$FALCON_HOME/bin/falcon entity -type [feed|process] -name <<name>> -touch
10.Status
用途:输出当前的falcon中的指定实体的状态
用法:
$FALCON_HOME/bin/falcon entity -type [cluster|datasource|feed|process] -name <<name>> -status
11.Definition
用途:输出已经提交的实体的定义
用法:
$FALCON_HOME/bin/falcon entity -type [cluster|datasource|feed|process] -name <<name>> -definition
12.Dependency
用途:能够列出特定实体所依赖的全部实体,例如对于feed来说,可以返回所以来的cluster,对于process来说,可以返回所依赖的input feed
,output feed以及cluster的名字。
用法:
$FALCON_HOME/bin/falcon entity -type [cluster|datasource|feed|process] -name <<name>> -dependency