incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <>
Subject [jira] [Created] (AMBARI-2819) Extending Stack definition to remove duplication in stack metadata info.
Date Tue, 06 Aug 2013 17:14:48 GMT
Siddharth Wagle created AMBARI-2819:

             Summary: Extending Stack definition to remove duplication in stack metadata info.
                 Key: AMBARI-2819
             Project: Ambari
          Issue Type: Improvement
          Components: controller
            Reporter: Siddharth Wagle
            Assignee: Siddharth Wagle

The idea is to allow extending a stack definition and overriding some of its values.

Current stack definition structure of files and directories:
|_ stacks
   |_ <dist_name>
      |_ <version_number>
         |_ repos
         |_ services
            |_ <service_name>
               |_ configuration
                  configuration files
We introduce extends element at the top level (stack version level) that links to the parent
stack definition for this stack version.
Rules of extension: 
All of the parent stack services are automatically a part of the child stack
unless explicitly excluded.
2.    Only one parent stack can be extended by the child stack.
3.    <stacks>.<dist_name>.<repos>.repoinfo.xml, will not be overridden

4.    <stacks>.<dist_name>.<services>.<service_name>.metainfo.xml,
will not be overridden

1.  Extending stack definition

File: <stacks>.<dist_name>.<version_number>.metainfo.xml
E.g.: /stacks/HDP/1.3.1/metainfo.xml

2.  Extending service definition

E.g.: /stacks/HDP/1.2.1/services/HDFS/metainfo.xml
    <comment>Apache Hadoop Distributed File System</comment>
<!-- 0: remove property from configuration for this version
                      1: (default) new or overwrites, if present in prior versions -->
    <override-visibility>0/1</override-visibility >

3.  Extending service configurations

File: <stacks>.<dist_name>.<version_number>.<service_name>.<configuration>.configuration_file
E.g.: /stacks/HDP/1.3.1/services/HDFS/configuration/hdfs-site.xml


The same property can disappear and reappear in an extension graph.
1.3.0 ----------------> 1.3.1 ----------------> 1.3.2 ----------------> 1.3.5
a = b                             a = c                              a = c               
             a = c

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message