APACHE FALCON  CLI

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

NobiGo

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值