conftest

Validates configuration XML files. If the -conffile option isn’t specified, the .xml files under ${HADOOP_CONF_DIR} will be verified. If specified, that path will be verified.

You can specify either a file or a directory, if a directory is specified, the files in that directory whose names end with .xml will be verified. You can specify -conffile option multiple times.

The validation is fairly minimal: the XML is parsed and duplicated, empty property names are checked. The command does not support XInclude. If you are using that to pull in configuration items, it will declare the XML file invalid.

The usage is as follows:

$ hadoop conftest [-conffile <path>]...
Arguments

-conffile

A path to a configuration file or directory to validate

-h, --help

Prints help

Example:

$ hadoop conftest
$ hadoop conftest -conffile /etc/hadoop/conf/core-site.xml
Found a mistake? Seleсt text and press Ctrl+Enter to report it