Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 12-04-2017 07:38 AM
when we perform service check for particular service like oozie , hive , habse ..etc we click on service actions and then run on service check but I am interested to know what operations are covered when we run service check for various services . Is there some rest api to details of operations performed when we click on run service check for particular service ?
Created 12-04-2017 10:55 AM
Hi @Anurag Mishra ,
for Operations covered when you run service check on various services you can know by reading the file service_check.py in respective services
for example : HBASE you can understand by reading the file :
cat /var/lib/ambari-server/resources/common-services/HBASE/0.96.0.2.0/package/scripts/service_check.py
for HDFS
cat /var/lib/ambari-server/resources/common-services/HDFS/2.1.0.2.0/package/scripts/service_check.py
Similarly you can Open each of folders in common-services to see how ambari performs service check on each of those services
Now For other question Is there some rest api to details of operations performed ?
you can Always know it by checking in Pending requests in UI
if you want to perform Service check via REST API you can follow the guides here :
How to run service checks for various services using Ambari Rest APIs.
Created 12-04-2017 10:55 AM
Hi @Anurag Mishra ,
for Operations covered when you run service check on various services you can know by reading the file service_check.py in respective services
for example : HBASE you can understand by reading the file :
cat /var/lib/ambari-server/resources/common-services/HBASE/0.96.0.2.0/package/scripts/service_check.py
for HDFS
cat /var/lib/ambari-server/resources/common-services/HDFS/2.1.0.2.0/package/scripts/service_check.py
Similarly you can Open each of folders in common-services to see how ambari performs service check on each of those services
Now For other question Is there some rest api to details of operations performed ?
you can Always know it by checking in Pending requests in UI
if you want to perform Service check via REST API you can follow the guides here :
How to run service checks for various services using Ambari Rest APIs.
Created 12-04-2017 11:30 AM
thanks Akhil
Created 12-04-2017 11:31 AM
If You feel this clears your queries, please mark the answer as accepted.