THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
<?xml version="1.0"?> <metainfo> <schemaVersion>2.0</schemaVersion> <services> <service> <name>HDFS</name> <displayName>HDFS</displayName> <comment>Apache Hadoop Distributed File System</comment> <version>2.1.0.2.0</version> <components> ... <component> <name>HDFS_CLIENT</name> ... <configFiles> <configFile> <type>xml</type> <fileName>hdfs-site.xml</fileName> <dictionaryName>hdfs-site</dictionaryName> </configFile> <configFile> <type>xml</type> <fileName>core-site.xml</fileName> <dictionaryName>core-site</dictionaryName> </configFile> <configFile> <type>env</type> <fileName>log4j.properties</fileName> <dictionaryName>hdfs-log4j,yarn-log4j</dictionaryName> </configFile> <configFile> <type>env</type> <fileName>hadoop-env.sh</fileName> <dictionaryName>hadoop-env</dictionaryName> </configFile> </configFiles> ... <configuration-dependencies> <config-type>core-site</config-type> <config-type>hdfs-site</config-type> </configuration-dependencies> </component> ... </components> <configuration-dir>configuration</configuration-dir> <configuration-dependencies> <config-type>core-site</config-type> <config-type>hdfs-site</config-type> <config-type>hadoop-env</config-type> <config-type>hadoop-policy</config-type> <config-type>hdfs-log4j</config-type> <config-type>ranger-hdfs-plugin-properties</config-type> <config-type>ssl-client</config-type> <config-type>ssl-server</config-type> <config-type>ranger-hdfs-audit</config-type> <config-type>ranger-hdfs-policymgr-ssl</config-type> <config-type>ranger-hdfs-security</config-type> <config-type>ams-ssl-client</config-type> </configuration-dependencies> </service> </services> </metainfo> |
- configFiles - lists the config-files handled by the enclosing component
- configFile - represents one config-file of a certain type
- type - type of file based on which contents are generated differently
- xml - XML file generated in Hadoop friendly format. Ex: hdfs-site.xml
- env - Generally used for scripts where the content value is used as a template. The template has config-tags whose values are populated at runtime during file generation. Ex: hadoop-env.sh
- properties - Generates property files where entries are in key=value format. Ex: falcon-runtime.properties
- dictionaryName - Name of the config-type as which key/values of this config file will be stored
- type - type of file based on which contents are generated differently
- configuration-dependencies - Lists the config-types on which this component or service depends on. One of the implications of this dependency is that whenever the config-type is updated, Ambari automatically marks the component or service as requiring restart. From the code section above, whenever core-site is updated, both HDFS service as well as HDFS_CLIENT component will be marked as requiring restart.
- configuration-dir - Directory where files listed in configFiles will be. Optional. Default value is configuration.
Files
Alerts
Kerberos
Metrics
...