[
https://issues.apache.org/jira/browse/AMBARI-19618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yao Lei updated AMBARI-19618:
-----------------------------
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>
was:
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>
<component>
<name>RANGER_USERSYNC</name>
<displayName>Ranger Usersync</displayName>
<category>MASTER</category>
<cardinality>1</cardinality>
<versionAdvertised>true</versionAdvertised>
<coHost>RANGER_ADMIN</coHost>
</component>
> Make cohosted 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
> Affects Versions: trunk
> Reporter: Yao Lei
> Fix For: trunk, 3.0.0
>
> Attachments: after_patched_hive1.png, after_patched_hive2.png,
> after_patched_ranger1.png, after_patched_ranger2.png,
> after_patched_ranger3.png, AMBARI-19618_1.patch, AMBARI-19618_2.patch,
> AMBARI-19618_3.patch
>
>
> 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>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)