Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ambari - adding custom service

avatar
Contributor

Hello everybody,

I am trying to add a custom service to ambari using the documentation as main resource. The service is made up by two master components implemented as java processes. I can add the service to the stack and install it via the ambari web interface using the dummy python scripts provided as example. There are some aspects not covered I would like to know more about:

  • Is there some additional resource on how to implement the actual methods to install, start and stop the components of the service?
  • How can I distribute the program files in the cluster?

Thank you all for the help.

1 ACCEPTED SOLUTION

avatar
Super Collaborator

The following page has examples:

https://github.com/abajwa-hw/ambari-flink-service/blob/master/package/scripts/flink.py

Ali has many examples of services in his repositories.

The setup page for this service shows how to get the scripts into the cluster.

https://github.com/abajwa-hw/ambari-flink-service

View solution in original post

4 REPLIES 4

avatar
Super Collaborator

The following page has examples:

https://github.com/abajwa-hw/ambari-flink-service/blob/master/package/scripts/flink.py

Ali has many examples of services in his repositories.

The setup page for this service shows how to get the scripts into the cluster.

https://github.com/abajwa-hw/ambari-flink-service

avatar
Contributor

Sorry to bother again, two additional questions:

  • from my understanding, the File(), Execute(), Script() ... are meant to execute commands cluster-wise, right?
  • I imagine the configuration loaded using the get_config() method in the params and status_params scripts is backed up by some configuration file in the cluster. If I am right, where is it located?

Thank you for the help @bhagan

avatar
Master Guru

avatar
Contributor

Hi @Riccardo Iacomini,

I found those two examples quite helpful:

- https://github.com/geniuszhe/ambari-mongodb-cluster

- https://github.com/abajwa-hw/ntpd-stack

I suppose you have your own services, if so, I'd create my own repo (rpm repo for centos e.g. as in the mongodb example) where you have your services packaged and ready to install.