Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari - adding custom service

Solved Go to solution

Ambari - adding custom service

New 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

Accepted Solutions
Highlighted

Re: Ambari - adding custom service

Expert Contributor

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

4 REPLIES 4
Highlighted

Re: Ambari - adding custom service

Expert Contributor

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

Re: Ambari - adding custom service

New 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

Re: Ambari - adding custom service

Super Guru

Re: Ambari - adding custom service

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.