Support Questions

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

ambari smoke test

avatar

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 ?

1 ACCEPTED SOLUTION

avatar

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.

Ambari API - Run all service checks (bulk)

View solution in original post

3 REPLIES 3

avatar

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.

Ambari API - Run all service checks (bulk)

avatar

@Akhil S Naik

thanks Akhil

avatar

If You feel this clears your queries, please mark the answer as accepted.