Updated on 2022-11-18 GMT+08:00

coordinator.xml

Function

coordinator.xml is used to periodically execute a workflow job.

Parameter Description

Table 1 describes parameters in coordinator.xml.

Table 1 Parameters

Parameter

Meaning

frequency

Indicates the workflow execution interval.

start

Indicates the time when a scheduled workflow job is started.

end

Indicates the time when a scheduled workflow job is stopped.

resourceManager

Indicates the MapReduce ResourceManager address.

queueName

Identifies the MapReduce queue where a job is executed.

nameNode

Indicates the Hadoop distributed file system (HDFS) NameNode address.

${variable name} indicates the value defined in job.properties.

For example, ${nameNode} indicates hdfs://hacluster. (See job.properties.)

Example Codes

<coordinator-app name="cron-coord" frequency="${coord:days(1)}" start="${start}" end="${end}" timezone="UTC" xmlns="uri:oozie:coordinator:0.2">
        <action>
        <workflow>
            <app-path>${workflowAppUri}</app-path>
            <configuration>
                <property>
                    <name>resourceManager</name>
                    <value>${resourceManager}</value>
                </property>
                <property>
                    <name>nameNode</name>
                    <value>${nameNode}</value>
                </property>
                <property>
                    <name>queueName</name>
                    <value>${queueName}</value>
                </property>
            </configuration>
        </workflow>
    </action>
</coordinator-app>