Support Questions
Find answers, ask questions, and share your expertise

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

Solved Go to solution

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

Explorer

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

Super Mentor

@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.

View solution in original post

5 REPLIES 5

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

Super Mentor

@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.

View solution in original post

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

Explorer

I am using Ambari 2.6.2.2 and Ambari Metrics version is 0.1.0

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

Explorer

I will try to do it by using your suggestion at tomorrow. By the way, txs

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

Explorer

It worked,thanks

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

Super Mentor

@Magical Jelly

Good to know that the issue is resolved. It will be wonderful if you can mark this HCC thread as Answered by clicking on the "Accept" link then other HCC users can quickly find the answered threads.