[ 
https://issues.apache.org/jira/browse/AMBARI-19618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yao Lei updated AMBARI-19618:
-----------------------------
    Description: 
Cohost 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 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>


  was:
Cohost 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 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>



> Make cohost components configurable in metainfo.xml instead of hardcoding in 
> UI
> -------------------------------------------------------------------------------
>
>                 Key: AMBARI-19618
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19618
>             Project: Ambari
>          Issue Type: Improvement
>            Reporter: Yao Lei
>             Fix For: trunk, 2.5.0
>
>
> Cohost 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 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>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to