- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Ambari - adding custom service
- Labels:
-
Apache Ambari
Created 04-28-2017 02:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 04-28-2017 02:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 04-28-2017 02:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 05-03-2017 01:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 04-29-2017 02:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In addition to above answer, please refer below useful articles for creating custom Ambari alerts
https://community.hortonworks.com/questions/9033/how-to-add-custom-alerts-in-ambari.html
Created 06-29-2017 02:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
