- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Auto restart for services managed by Cloudera Manager
- Labels:
-
Apache HBase
-
Cloudera Manager
Created on ‎12-23-2014 12:49 PM - edited ‎09-16-2022 02:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am looking for ways for me to auto-restart services (e.g. HBase RegionServer) in a particular machine. When I looked through the API, there doesn't seem to be a way for me to start a service in a per-host level. The closest API that I found start the whole service, e.g. HBase (http://cloudera.github.io/cm_api/apidocs/v8/path__clusters_-clusterName-_services_-serviceName-_comm... I could write a cron job that just runs that command periodically but it doesn't feel semantically correct.
Is there a better alternative?
Created ‎12-23-2014 02:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
search for "Automatically Restart Process". You should see this option
for each role within the service.
Gautam Gopalakrishnan
Created ‎12-23-2014 02:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
search for "Automatically Restart Process". You should see this option
for each role within the service.
Gautam Gopalakrishnan
Created ‎12-23-2014 03:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Agreed with Gautam.
If you want to do this via the API, then you can configure process_auto_restart in the appropriate role config group.
If you want to restart particular roles instead of the whole service, use the following API endpoint:
http://cloudera.github.io/cm_api/apidocs/v9/path__clusters_-clusterName-_services_-serviceName-_role...
Thanks,
Darren
Created ‎12-23-2014 03:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, that works smoothly.
Created ‎07-20-2016 12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What if I want to configure the same on Machine startup (Tarball Installation) like
1) Cloudera Server and Agents(On all machines)
2) The Cloudera Manager
3) Then Core services of hadoop and all other services
I tried using Automatically restart Process and making Hard restart but it didn't worked for me.
Created ‎08-09-2017 02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Gautum,
I have tried this property and it worked. But i have noticed that it only try 4 times, After that process didn't start. Are there any other configurations where i can provide the number of times process should restart?
Regards!
Gaurav Garg
