Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

What is a config-type?

String representing a group of configurations. Example: core-site, hdfs-site, yarn-site, etc. When configurations are saved in Ambari, they are persisted within a version of config-type which is immutable. If you change and save HDFS core-site configs 4 times, you will have 4 versions of config-type core-site. Also, when a service's configs are saved, only the changed config-types are updated. The supported types of config files are xml, env and properties.

Adding / modifying config properties in a config-type.

There are a number of supported property and value attributes in the XML schema of an Ambari managed config type. These attributes can be useful in specifying type , constraints, upgrade related choices, validations etc. A config property in a config-type looks like this.

Code Block
<property require-input="false">
<name>dfs.namenode.checkpoint.dir</name>
<value>/hadoop/hdfs/namesecondary</value>
<description>Determines where on the local filesystem the DFS secondary
  name node should store the temporary images to merge.
  If this is a comma-delimited list of directories then the image is
  replicated in all of the directories for redundancy.
</description>
<display-name>SecondaryNameNode Checkpoint directories</display-name>
<filename>hdfs-site.xml</filename>
<deleted>false</deleted>
<on-ambari-upgrade add="false" delete="false" update="false"/>
<on-stack-upgrade merge="true"/>
<property-type></property-type>
<value-attributes>
  <type>directories</type>
  <overridable>false</overridable>
  <keystore>false</keystore>
</value-attributes>
<depends-on/>
<property_depended_by/>
<used-by/>
</property>

 

The following table discusses the supported basic and advanced attributes.