I created Custom Stack. I successfully installed Custom stack and install/configure/start/stop custom services.
But, stack_versions API seems to be wrong.
“http://clusterhost:8080/api/v1/clusters/mycluster/stack_versions?fields=*,repository_versions/*,repository_versions/operating_systems/repositories/*” <span style=”line-height: 1.5;”>API call return following json:</span>
{
“href” : “http://skt-phddtn1:8080/api/v1/clusters/mycluster/stack_versions?fields=*,repository_versions/*,repository_versions/operating_systems/repositories/*&_=1449469214041″,
<span style=”text-decoration: underline;”>“items” : [ ]</span>
}
In other cluster using HDP, stack_versions API return some data in items elements.
I created following Custom Stack.
- /var/lib/ambari-server/resources/stacks/MYSTACK/1.0/metainfo.xml, widgets.json, role_command_order.json
- /var/lib/ambari-server/resources/stacks/MYSTACK/1.0/configuration/cluster-env.xml
- /var/lib/ambari-server/resources/stacks/MYSTACK/1.0/repos/repoinfo.xml
- /var/lib/ambari-server/resources/stacks/MYSTACK/1.0/services/AMBARI_METRICS, CUSTOMSVC1, CUSTOMSVC2, …
MYSTACK’s AMBARI_METRICS inherits commons_services’. Others are not inherited from HDP & common services.
I have no stack_advisor.py in <span style=”line-height: 1.5;”>MYSTACK/1.0/services folder.</span>
Should I create stack_advisor.py for MYSTACK? or Should I have create other code?
Thanks in advance.