Skip to main content
wanggd6811
Silver ⭐️⭐️
Jan 14, 2019 6:04 PM UTC
Solved

Ambari Metrics Widgets display No Data Available when the expression have subtraction?

97593-微信截图-20190114180219.png

When I reinstall the Ambari Metrics,I find some widget didn't work。After carefully analyzation,I find out that in the all error widget the expression have subtraction.

Anybody knows how to solve it ?

97592-微信截图-20190114180058.png

jsensharma
Platinum ⭐️⭐️
Jan 14, 2019 6:34 PM UTC

@Magical Jelly

Please let us know which ambari version are you using?

There seems to be some issue reported for Ambari 2.6 and prior version of Ambari Widgets where the Widget formula contained "Subtract" operator.

Something similar you can find here: https://issues.apache.org/jira/browse/AMBARI-23309

Code Changes: https://github.com/apache/ambari/pull/738/files

So if you can make the same changes as mentioned in the Pull request inside the
"/usr/lib/ambari-server/web/javascripts/app.js" (after taking a backup of this file) then it should start working after hard reset of browser.

.

Or try the same in Ambari 2.7.0 or later and then see if it works.

5 replies

jsensharma
Platinum ⭐️⭐️
Platinum ⭐️⭐️
Jan 14, 2019 6:34 PM UTC

@Magical Jelly

Please let us know which ambari version are you using?

There seems to be some issue reported for Ambari 2.6 and prior version of Ambari Widgets where the Widget formula contained "Subtract" operator.

Something similar you can find here: https://issues.apache.org/jira/browse/AMBARI-23309

Code Changes: https://github.com/apache/ambari/pull/738/files

So if you can make the same changes as mentioned in the Pull request inside the
"/usr/lib/ambari-server/web/javascripts/app.js" (after taking a backup of this file) then it should start working after hard reset of browser.

.

Or try the same in Ambari 2.7.0 or later and then see if it works.

Translate
wanggd6811
Silver ⭐️⭐️
Jan 14, 2019 7:42 PM UTC

I am using Ambari 2.6.2.2 and Ambari Metrics version is 0.1.0

Translate