Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

I am getting "Failed to replicate request GET /nifi-api/flow/current-user" on NIFI when I log on to the UI. Can someone please point out the issue?

Highlighted

I am getting "Failed to replicate request GET /nifi-api/flow/current-user" on NIFI when I log on to the UI. Can someone please point out the issue?

New Contributor

2016-10-20 18:49:00,179 WARN [Replicate Request Thread-1] o.a.n.c.c.h.r.ThreadPoolRequestReplicator Failed to replicate request GET /nifi-api/flow/current-user to dbr-lncn-02.int.payoff.com:8443 due to {}

com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: HTTPS hostname wrong: should be <dbr-lncn-02.int.payoff.com>

at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.Client.handle(Client.java:652) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509) ~[jersey-client-1.19.jar:1.19]

at org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator.replicateRequest(ThreadPoolRequestReplicator.java:528) ~[nifi-framework-cluster-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]

at org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator$NodeHttpRequest.run(ThreadPoolRequestReplicator.java:720) ~[nifi-framework-cluster-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_102]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_102]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_102]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_102]

at java.lang.Thread.run(Thread.java:745) [na:1.8.0_102]

Caused by: java.io.IOException: HTTPS hostname wrong: should be <dbr-lncn-02.int.payoff.com>

at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:649) ~[na:1.8.0_102]

at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:573) ~[na:1.8.0_102]

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[na:1.8.0_102]

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) ~[na:1.8.0_102]

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) ~[na:1.8.0_102]

at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[na:1.8.0_102]

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) ~[na:1.8.0_102]

at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:253) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153) ~[jersey-client-1.19.jar:1.19]

... 12 common frames omitted

2016-10-20 18:49:00,180 WARN [Replicate Request Thread-1] o.a.n.c.c.h.r.ThreadPoolRequestReplicator

com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: HTTPS hostname wrong: should be <dbr-lncn-02.int.payoff.com>

at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.Client.handle(Client.java:652) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509) ~[jersey-client-1.19.jar:1.19]

at org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator.replicateRequest(ThreadPoolRequestReplicator.java:528) ~[nifi-framework-cluster-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]

at org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator$NodeHttpRequest.run(ThreadPoolRequestReplicator.java:720) ~[nifi-framework-cluster-1.0.0.2.0.0.0-579.jar:1.0.0.2.0.0.0-579]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_102]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_102]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_102]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_102]

at java.lang.Thread.run(Thread.java:745) [na:1.8.0_102]

Caused by: java.io.IOException: HTTPS hostname wrong: should be <dbr-lncn-02.int.payoff.com>

at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:649) ~[na:1.8.0_102]

at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:573) ~[na:1.8.0_102]

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[na:1.8.0_102]

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) ~[na:1.8.0_102]

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) ~[na:1.8.0_102]

at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[na:1.8.0_102]

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) ~[na:1.8.0_102]

at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:253) ~[jersey-client-1.19.jar:1.19]

at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153) ~[jersey-client-1.19.jar:1.19]

... 12 common frames omitted

6 REPLIES 6

Re: I am getting "Failed to replicate request GET /nifi-api/flow/current-user" on NIFI when I log on to the UI. Can someone please point out the issue?

Master Guru
@Mark Nguyen

looks like you are having an SSL problem. The hostname does not match the CN in the certificate that is being returned. I would assume the host you are executing your GET against has a hostname of dbr-lncn-02.int.payoff.com; however, the following property in that server's nifi.properties file is either blank or set to some other value: nifi.web.https.host=

Make sure you set the above property so that it match the CN from the certificate its is using. A restart of NiFi will be require for any changes made to the nifi.properties file to take affect.

Matt

Re: I am getting "Failed to replicate request GET /nifi-api/flow/current-user" on NIFI when I log on to the UI. Can someone please point out the issue?

New Contributor

@mclark I had tried with what you suggest with but I am still not able to get it works. I think I am missing something very basic. Do you have time that I can talk to you on Google Hangout so that I can show you what I did?

Re: I am getting "Failed to replicate request GET /nifi-api/flow/current-user" on NIFI when I log on to the UI. Can someone please point out the issue?

New Contributor

Did you have figure it out?

Re: I am getting "Failed to replicate request GET /nifi-api/flow/current-user" on NIFI when I log on to the UI. Can someone please point out the issue?

New Contributor

@mclark

Finally, I am able to get my Secure NIFI cluster working. Thanks for the help Matt!

Re: I am getting "Failed to replicate request GET /nifi-api/flow/current-user" on NIFI when I log on to the UI. Can someone please point out the issue?

New Contributor

it would be great if you shared what you did so people can leverage your learnings

Re: I am getting "Failed to replicate request GET /nifi-api/flow/current-user" on NIFI when I log on to the UI. Can someone please point out the issue?

New Contributor

I got my https cluster to work by generating Request certificates for each hostname and then point to them in the nifi.properties file for the nifi.security.keystore setting. You need to also designate the certificate settings in the authorizers.xml file. You need to also generate a truststore. Please see this link for instructions: https://community.hortonworks.com/articles/886/securing-nifi-step-by-step.html

Don't have an account?
Coming from Hortonworks? Activate your account here