Support Questions

Find answers, ask questions, and share your expertise

How can I fix the alert for YARN: ats-hbase service information could not be retrieved

avatar
Explorer

Ambari-version:2.7.3

HDP-version:3.1.0

 

In the yarn log file,I didn't find any error about "ats-hbase service".

Where should I find the log file about alter information?

image.png

image.png

image.pngimage.png

1 ACCEPTED SOLUTION

avatar
Master Mentor

@LeeFan 

 

Usually ambari makes use of the following script to run the alert check for the ats-hbase service.

 

/var/lib/ambari-server/resources/stacks/HDP/3.0/services/YARN/package/alerts/alert_ats_hbase.py   (on Ambari Server)

/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/alerts/alert_ats_hbase.py 
  (On Agent hosts)

 

Above script relies on the following command to fetch the status.

 

# su - yarn-ats -c "/usr/hdp/current/hadoop-yarn-client/bin/yarn app -status ats-hbase"

 

 

However, in your attached screenshot where we see the alert .. shows the alert was executed 13 hours old alert. It might not be the current status of your ats-hbase. 

 

So can you please try to disable the alert and then enable it after 10 seconds to see if the old alert clears.

Ambari UI --> Alerts (from left bottom panel) --> filter (icon) --> "Alert Definition Name" as "ATSv2 HBase Application"          (click on Disable alertand then after 10 seconds to clear the old alert and then enable it back)

 

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@LeeFan 

 

Usually ambari makes use of the following script to run the alert check for the ats-hbase service.

 

/var/lib/ambari-server/resources/stacks/HDP/3.0/services/YARN/package/alerts/alert_ats_hbase.py   (on Ambari Server)

/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/alerts/alert_ats_hbase.py 
  (On Agent hosts)

 

Above script relies on the following command to fetch the status.

 

# su - yarn-ats -c "/usr/hdp/current/hadoop-yarn-client/bin/yarn app -status ats-hbase"

 

 

However, in your attached screenshot where we see the alert .. shows the alert was executed 13 hours old alert. It might not be the current status of your ats-hbase. 

 

So can you please try to disable the alert and then enable it after 10 seconds to see if the old alert clears.

Ambari UI --> Alerts (from left bottom panel) --> filter (icon) --> "Alert Definition Name" as "ATSv2 HBase Application"          (click on Disable alertand then after 10 seconds to clear the old alert and then enable it back)

 

avatar
Explorer

image.png
After following your suggestion, the problem seems to have been solved.