Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-19618

Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • trunk
    • trunk, 3.0.0
    • None
    • None

    Description

      Cohosted components information now is hardcoded in stack_service_component.js as following:

      App.StackServiceComponent.coHost = {
      'WEBHCAT_SERVER': 'HIVE_SERVER'
      };

      It's better to move them from javascript to metainfom.xml by adding tag <coHost></coHost>in stack like following:

      <component>
      <name>WEBHCAT_SERVER</name>
      <displayName>WebHCat Server</displayName>
      <category>MASTER</category>
      <cardinality>1</cardinality>
      <versionAdvertised>true</versionAdvertised>
      <reassignAllowed>true</reassignAllowed>
      <coHost>HIVE_SERVER</coHost>
      </component>

      //https://issues.apache.org/jira/browse/AMBARI-19557
      //http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_security/content/ch03s01s03s01.html
      <component>
      <name>RANGER_USERSYNC</name>
      <displayName>Ranger Usersync</displayName>
      <category>MASTER</category>
      <cardinality>1</cardinality>
      <versionAdvertised>true</versionAdvertised>
      <coHost>RANGER_ADMIN</coHost>
      </component>

      Attachments

        1. after_patched_hive1.png
          98 kB
          Lei Yao
        2. after_patched_hive2.png
          101 kB
          Lei Yao
        3. after_patched_ranger1.png
          68 kB
          Lei Yao
        4. after_patched_ranger2.png
          68 kB
          Lei Yao
        5. after_patched_ranger3.png
          71 kB
          Lei Yao
        6. AMBARI-19618_1.patch
          33 kB
          Lei Yao
        7. AMBARI-19618_2.patch
          33 kB
          Lei Yao
        8. AMBARI-19618_3.patch
          35 kB
          Lei Yao

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yaolei Lei Yao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: