Andrii Tkach created AMBARI-7521:
------------------------------------
Summary: Adding a component to a host should check for the
presence of host scope dependencies of that component
Key: AMBARI-7521
URL: https://issues.apache.org/jira/browse/AMBARI-7521
Project: Ambari
Issue Type: Task
Components: ambari-web
Affects Versions: 1.7.0
Reporter: Andrii Tkach
Assignee: Andrii Tkach
Priority: Critical
Fix For: 1.7.0
Host details page allows adding any uninstalled client component and some
non-client component to the host.
But there are some components that have a host scope dependencies on another
components. For example, Slider client won't function properly if HDFS client
and YARN client are not installed with it on the same host and thus slider
client has host scope dependencies on HDFS and YARN client. Such information is
available from API.
As a part of this ticket, ambari-web should maintain a map of host scope
dependencies for every component in StackServiceComponent model.
On host page while adding a component, ambari-web code should check if the
component's host scope dependencies are installed or not on that host. If not
then show a single button ("OK") popup window informing the user to install
them first:
*popup window message:*
{code}"${ComponentNameTobeAdded} requires ${componentName},${componentName} and
${componentName} to be installed along with it. Please add them first and then
try adding ${{ComponentNameTobeAdded}"{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)