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

NIFI Error sending metrics to Ambari due to 500

NIFI Error sending metrics to Ambari due to 500

NiFi Bulletin Board reports following error:

AmbariReportingTask [id=aaaaec9a-015e-1000-ffff-ffffcfe6cfd2] Error sending metrics to Ambari due to 500

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><RemoteException><exception>WebApplicationException</exception><javaClassName>javax.ws.rs.WebApplicationException</javaClassName></RemoteException>

ambari-server.log

6 Jan 2018 16:21:49,701 ERROR [ambari-metrics-retrieval-service-thread-1797] MetricsRetrievalService:492 - Unable to retrieve metrics from http://NODE1:8744/api/v1/cluster/summary. Subsequent failures will be suppressed from the log for 20 minutes.

java.net.ConnectException: Connection refused (Connection refused)

	at java.net.PlainSocketImpl.socketConnect(Native Method)

	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

	at java.net.Socket.connect(Socket.java:589)

	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)

	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)

	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)

	at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)

	at sun.net.www.http.HttpClient.New(HttpClient.java:308)

	at sun.net.www.http.HttpClient.New(HttpClient.java:326)

	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)

	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)

	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)

	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)

	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)

	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)

	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)

	at org.apache.ambari.server.controller.internal.URLStreamProvider.processURL(URLStreamProvider.java:218)

	at org.apache.ambari.server.controller.internal.URLStreamProvider.processURL(URLStreamProvider.java:142)

	at org.apache.ambari.server.controller.internal.URLStreamProvider.readFrom(URLStreamProvider.java:116)

	at org.apache.ambari.server.controller.internal.URLStreamProvider.readFrom(URLStreamProvider.java:121)

	at org.apache.ambari.server.state.services.MetricsRetrievalService$MetricRunnable.run(MetricsRetrievalService.java:438)

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

	at java.lang.Thread.run(Thread.java:745)


2 REPLIES 2

Re: NIFI Error sending metrics to Ambari due to 500

Is the Ambari Metrics server installed and running?

Re: NIFI Error sending metrics to Ambari due to 500

Hi @Bryan Bende, Ambari Metrics server is running, I see the Reports of resources as below, not from NIFI

56515-screen-shot-2018-01-29-at-103848-am.png