Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
New Member

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
New Member

@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
New Member