Support Questions

Find answers, ask questions, and share your expertise

Is there a way in ambari to find dependencies of services on each other?

avatar
Contributor

I want to get a list of services that are dependent on a particular service. Is there a direct api call to do that?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@vrathod

The following ambari API can be used to see the required components list by a particular service like "Hive"

http://localhost:8080/api/v1/stacks/HDP/versions/2.5/services/HIVE

required_services: ["ZOOKEEPER",
"HDFS",
"YARN",
"TEZ",
"PIG",
"SLIDER"
],

.

View solution in original post

5 REPLIES 5

avatar
Master Mentor

@vrathod

Ambari services uses "metainfo.xml" file which provides the information about the dependencies "the list of components that this component depends on"

https://cwiki.apache.org/confluence/display/AMBARI/Writing+metainfo.xml

For example if we want to see "HIVE_SERVER" service is dependent on which all components.

https://github.com/apache/ambari/blob/release-2.4.2/ambari-server/src/main/resources/common-services...

avatar
Master Mentor

@vrathod

The following ambari API can be used to see the required components list by a particular service like "Hive"

http://localhost:8080/api/v1/stacks/HDP/versions/2.5/services/HIVE

required_services: ["ZOOKEEPER",
"HDFS",
"YARN",
"TEZ",
"PIG",
"SLIDER"
],

.

avatar
Contributor

@Jay SenSharma Right, this gives me the services required for Hive. But what if I want to find what services are dependent on Hive? Maybe I can reverse look up by making this call for each service

avatar
Master Mentor

@vrathod

Please accept the thread, if you do not have any further query related to this HCC thread.

avatar
Contributor