The config-default.xml file

So far, we have done lots of code duplication. We copied the same properties again and again in the property files. Oozie has a concept of config-default.xml, which can be used to store such properties. This file is present in the folder where workflow.xml is present, and it is automatically parsed for properties. From now onwards, we will use the config-default.xml file for all the properties that are common. This file is optional but highly recommended to avoid code duplication. Anything that is common to all Workflows, for example, cluster details, should be added to config-default.xml:

# default-config.xml <configuration> <property> <name>oozie.use.system.libpath</name> <value>True</value> </property> <property> ...

Get Apache Oozie Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.