Ⅰ、name: 服务名,必须唯一,建议大写<--><name>FLINKname>Ⅱ、displayName: 服务在 web UI 上的显示名<--><displayName>FlinkdisplayName>Ⅲ、comment: 服务的描述信息<--><comment>Apache Flink is a streaming dataflow engine that provides data distribution, communication, and fault tolerance for distributed computations over data streams.comment>Ⅳ、version: 服务版本, 用 name 和 version 唯一标记一个服务<--><version>1.14.5version>Ⅴ、components: 服务中包含的组件<--><components><component><name>FLINK_MASTERname><displayName>FlinkdisplayName><category>MASTERcategory><cardinality>1cardinality><commandScript><script>scripts/flink.pyscript><scriptType>PYTHONscriptType><timeout>10000timeout>commandScript>component>components>Ⅵ、osSpecifics: 服务会根据操作系统的差异来选择不同的 rpm 包<--><osSpecifics><osSpecific><osFamily>redhat7,redhat6osFamily><packages><package><name>gitname>package><package><name>java-1.7.0-openjdk-develname>package><package><name>apache-maven-3.2*name>package>packages>osSpecific>osSpecifics>Ⅶ、configuration-dependencie: 服务依赖的 xml 文件<--><configuration-dependencies><config-type>flink-ambari-configconfig-type>configuration-dependencies>Ⅷ、restartRequiredAfterChange: 服务更改后是否强制重启<--><restartRequiredAfterChange>falserestartRequiredAfterChange>Ⅸ、requiredServices: 集群上强制依赖的其他服务<--><requiredServices><service>YARNservice>requiredServices>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
参数说明如下
属性
描述
name
服务名,必须唯一,建议大写
displayName
服务在 web UI 上的显示名
comment
服务的描述信息
version
服务版本,用 name 和 version 唯一标记一个服务
components
服务中包含的组件
commandScript(可选)
自定义命令 python 脚本入口,如果一个 Service 的 metainfo.xml 有该字段,那么在 Service 的 Action 列表中就会出现 自定义 命令。