Support Questions
Find answers, ask questions, and share your expertise

How to add repo for Custom Service?

Hello All,

I want to add repo for custom service. I tried the following link -

https://cwiki.apache.org/confluence/display/AMBARI/Custom+Service+Repo, but couldn't get through it.

Any leads is deeply appreciated.

Thanks,

Sakshi

2 REPLIES 2

Super Mentor

@sakshi chourasia

Your custom service can be inside the the ambari server as following: /var/lib/ambari-server/resources/common-services/${YOUR_CUSTOM_SERVICE}/0.1.0

- You will need to change the "${YOUR_CUSTOM_SERVICE}/0.1.0" part according to your service version and custom service name.

The ambari custom stacks can be defined here: /var/lib/ambari-server/resources/stacks as mentioned in : https://cwiki.apache.org/confluence/display/AMBARI/Defining+a+Custom+Stack+and+Services

Have you tried creating a file as repos/repoinfo,xml as mentioned in the following examples:

Example: https://github.com/apache/ambari/tree/trunk/contrib/management-packs/odpi-ambari-mpack/src/main/reso...

Example of repoinfo.xml can be seen: https://github.com/apache/ambari/blob/trunk/contrib/management-packs/microsoft-r_mpack/src/main/reso...

.

Please let us know if you find any error/exception while implementing the same?

I have tried but not able to see the dialogue box coming which shows/ask for the custom service repo.

@Jay SenSharma, Have you tried this?

Steps I followed is -

1. I am adding custom service using mpack.

2. The repoinfo.xml for custom service I have added as follows -

/var/lib/ambari-server/resources/mpacks/<custom-service-mpack>/extensions/<custom-service-extension>/<version>/services/<service-name>/repos/repoinfo.xml.

The same file is not getting populated in ambari-agent.

@jluniya, have I followed the correct steps. Is custom service repo feature is supported for ambari-2.4.2 with mpack?