failed to replicate request GET /NIFI-API/flow/process-groups/root to saxx:9090

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

failed to replicate request GET /NIFI-API/flow/process-groups/root to saxx:9090

pradeepbill
hello folks, I see this exception, and can not open the NIFI console.There is connectivity between the nodes in the cluster on port 9090.Any clues would help.

2017-05-02 11:50:18,607 WARN [Replicate Request Thread-2] o.a.n.c.c.h.r.ThreadPoolRequestReplicator Failed to replicate request GET /nifi-api/flow/process-groups/root to sabc.abcd.local:9090 due to {}
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
        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:578) ~[nifi-framework-cluster-1.0.0.2.0.1.0-12.jar:1.0.0.2.0.1.0-12]
        at org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator$NodeHttpRequest.run(ThreadPoolRequestReplicator.java:770) ~[nifi-framework-cluster-1.0.0.2.0.1.0-12.jar:1.0.0.2.0.1.0-12]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_111]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_111]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
Caused by: java.net.SocketTimeoutException: Read timed out

thanks
Pradeep
Reply | Threaded
Open this post in threaded view
|

Re: failed to replicate request GET /NIFI-API/flow/process-groups/root to saxx:9090

Bryan Bende
Pradeep,

This means the NiFi you are accessing the UI from is trying to
replicate a request to another NiFi in the cluster running on
sabc.abcd.local:9090 and couldn't complete the replication due to a
read timeout.

Can you verify there is a NiFi running at sabc.abcd.local:9090? Can
you access the UI of the other NiFi at
http://sabc.abcd.local:9090/nifi ?

-Bryan

On Tue, May 2, 2017 at 12:14 PM, pradeepbill <[hidden email]> wrote:

> hello folks, I see this exception, and can not open the NIFI console.There is
> connectivity between the nodes in the cluster on port 9090.Any clues would
> help.
>
> 2017-05-02 11:50:18,607 WARN [Replicate Request Thread-2]
> o.a.n.c.c.h.r.ThreadPoolRequestReplicator Failed to replicate request GET
> /nifi-api/flow/process-groups/root to sabc.abcd.local:9090 due to {}
> com.sun.jersey.api.client.ClientHandlerException:
> java.net.SocketTimeoutException: Read timed out
>         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:578)
> ~[nifi-framework-cluster-1.0.0.2.0.1.0-12.jar:1.0.0.2.0.1.0-12]
>         at
> org.apache.nifi.cluster.coordination.http.replication.ThreadPoolRequestReplicator$NodeHttpRequest.run(ThreadPoolRequestReplicator.java:770)
> ~[nifi-framework-cluster-1.0.0.2.0.1.0-12.jar:1.0.0.2.0.1.0-12]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [na:1.8.0_111]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [na:1.8.0_111]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [na:1.8.0_111]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [na:1.8.0_111]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> Caused by: java.net.SocketTimeoutException: Read timed out
>
> thanks
> Pradeep
>
>
>
> --
> View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/failed-to-replicate-request-GET-NIFI-API-flow-process-groups-root-to-saxx-9090-tp15612.html
> Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: failed to replicate request GET /NIFI-API/flow/process-groups/root to saxx:9090

Matt Gilman
Pradeep,

Trying increasing the cluster read timeout. It's specified in property

nifi.cluster.node.read.timeout

You'll need to update this configuration on each node of your cluster as
it's relevant for the node currently acting as the coordinator.

Thanks

Matt

On Tue, May 2, 2017 at 2:37 PM, Bryan Bende <[hidden email]> wrote:

> Pradeep,
>
> This means the NiFi you are accessing the UI from is trying to
> replicate a request to another NiFi in the cluster running on
> sabc.abcd.local:9090 and couldn't complete the replication due to a
> read timeout.
>
> Can you verify there is a NiFi running at sabc.abcd.local:9090? Can
> you access the UI of the other NiFi at
> http://sabc.abcd.local:9090/nifi ?
>
> -Bryan
>
> On Tue, May 2, 2017 at 12:14 PM, pradeepbill <[hidden email]>
> wrote:
> > hello folks, I see this exception, and can not open the NIFI
> console.There is
> > connectivity between the nodes in the cluster on port 9090.Any clues
> would
> > help.
> >
> > 2017-05-02 11:50:18,607 WARN [Replicate Request Thread-2]
> > o.a.n.c.c.h.r.ThreadPoolRequestReplicator Failed to replicate request
> GET
> > /nifi-api/flow/process-groups/root to sabc.abcd.local:9090 due to {}
> > com.sun.jersey.api.client.ClientHandlerException:
> > java.net.SocketTimeoutException: Read timed out
> >         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:578)
> > ~[nifi-framework-cluster-1.0.0.2.0.1.0-12.jar:1.0.0.2.0.1.0-12]
> >         at
> > org.apache.nifi.cluster.coordination.http.replication.
> ThreadPoolRequestReplicator$NodeHttpRequest.run(
> ThreadPoolRequestReplicator.java:770)
> > ~[nifi-framework-cluster-1.0.0.2.0.1.0-12.jar:1.0.0.2.0.1.0-12]
> >         at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> > [na:1.8.0_111]
> >         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> > [na:1.8.0_111]
> >         at
> > java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> > [na:1.8.0_111]
> >         at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> > [na:1.8.0_111]
> >         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> > Caused by: java.net.SocketTimeoutException: Read timed out
> >
> > thanks
> > Pradeep
> >
> >
> >
> > --
> > View this message in context: http://apache-nifi-developer-
> list.39713.n7.nabble.com/failed-to-replicate-request-
> GET-NIFI-API-flow-process-groups-root-to-saxx-9090-tp15612.html
> > Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: failed to replicate request GET /NIFI-API/flow/process-groups/root to saxx:9090

pradeepbill
In reply to this post by Bryan Bende
thanks Bryan, I could not open the console on http://sabc.abcd.local:9090/nifi.
Reply | Threaded
Open this post in threaded view
|

Re: failed to replicate request GET /NIFI-API/flow/process-groups/root to saxx:9090

pradeepbill
In reply to this post by Matt Gilman
thanks Matt, will do and let you know soon.
Reply | Threaded
Open this post in threaded view
|

Re: failed to replicate request GET /NIFI-API/flow/process-groups/root to saxx:9090

pradeepbill
ok, increased the timeout to 20 sec, and now I can see the console for sometime , less than a min, and with the same exception NIFI UI errors out.Please advice.