You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by jo...@barclays.com on 2016/05/31 13:14:10 UTC
site to site UnknownHostException
Hi
I'm new to Nifi. I have been experimenting with it and trying implement Site to Site connections between different Nifi instances on a Windows box and a Linux box. I configure a remote procedure group and it can see the names of the input ports (somewhat confusingly named 9992 here) and can connect to them but when I try to transfer a file I get an UnknownHostException. I have set the properties in the nifi.properties thus:
# Site to Site properties
nifi.remote.input.socket.host=gbrdc00015n01
nifi.remote.input.socket.port=7354
nifi.remote.input.secure=false
# web properties #
nifi.web.war.directory=./lib
nifi.web.http.host=gbrdcr00015n01
nifi.web.http.port=9995
nifi.web.https.host=
nifi.web.https.port=
nifi.web.jetty.working.directory=./work/jetty
nifi.web.jetty.threads=200
Any help would be greatly appreciated.
Thanks
Joe
2016-05-31 11:24:11,002 ERROR [Timer-Driven Process Thread-6] o.a.nifi.remote.StandardRemoteGroupPort RemoteGroupPort[name=9992,target=http://gbrdcr00015n01:9995/nifi] failed to communicate with http://gbrdcr00015n01:9995/nifi due to java.net.UnknownHostException
2016-05-31 11:24:11,002 ERROR [Timer-Driven Process Thread-6] o.a.nifi.remote.StandardRemoteGroupPort
java.net.UnknownHostException: null
at sun.nio.ch.Net.translateException(Unknown Source) ~[na:1.8.0_91]
at sun.nio.ch.SocketAdaptor.connect(Unknown Source) ~[na:1.8.0_91]
at org.apache.nifi.remote.client.socket.EndpointConnectionPool.establishSiteToSiteConnection(EndpointConnectionPool.java:712) ~[nifi-site-to-site-client-0.6.1.jar:0.6.1]
at org.apache.nifi.remote.client.socket.EndpointConnectionPool.establishSiteToSiteConnection(EndpointConnectionPool.java:685) ~[nifi-site-to-site-client-0.6.1.jar:0.6.1]
at org.apache.nifi.remote.client.socket.EndpointConnectionPool.getEndpointConnection(EndpointConnectionPool.java:301) ~[nifi-site-to-site-client-0.6.1.jar:0.6.1]
at org.apache.nifi.remote.client.socket.SocketClient.createTransaction(SocketClient.java:129) ~[nifi-site-to-site-client-0.6.1.jar:0.6.1]
at org.apache.nifi.remote.StandardRemoteGroupPort.onTrigger(StandardRemoteGroupPort.java:171) ~[nifi-site-to-site-0.6.1.jar:0.6.1]
at org.apache.nifi.controller.AbstractPort.onTrigger(AbstractPort.java:227) [nifi-framework-core-api-0.6.1.jar:0.6.1]
at org.apache.nifi.controller.tasks.ContinuallyRunConnectableTask.call(ContinuallyRunConnectableTask.java:81) [nifi-framework-core-0.6.1.jar:0.6.1]
at org.apache.nifi.controller.tasks.ContinuallyRunConnectableTask.call(ContinuallyRunConnectableTask.java:40) [nifi-framework-core-0.6.1.jar:0.6.1]
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:123) [nifi-framework-core-0.6.1.jar:0.6.1]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_91]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [na:1.8.0_91]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [na:1.8.0_91]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_91]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_91]
_______________________________________________
This message is for information purposes only, it is not a recommendation, advice, offer or solicitation to buy or sell a product or service nor an official confirmation of any transaction. It is directed at persons who are professionals and is not intended for retail customer use. Intended for recipient only. This message is subject to the terms at: www.barclays.com/emaildisclaimer.
For important disclosures, please see: www.barclays.com/salesandtradingdisclaimer regarding market commentary from Barclays Sales and/or Trading, who are active market participants; and in respect of Barclays Research, including disclosures relating to specific issuers, please see http://publicresearch.barclays.com.
_______________________________________________
Re: site to site UnknownHostException
Posted by Mark Payne <ma...@hotmail.com>.
Hi Joe,
On the sending side, do you have gbrdc00015n01 in your hosts file? Can you ping that node? Is the node that you are trying to send to a NiFi cluster or a standalone instance?
I have often seen firewalls cause UnknownHostException to get thrown, as well, when using site-to-site, so please verify that you have no firewall blocking access.
Thanks
-Mark
> On May 31, 2016, at 9:14 AM, <jo...@barclays.com> <jo...@barclays.com> wrote:
>
> Hi
>
> I’m new to Nifi. I have been experimenting with it and trying implement Site to Site connections between different Nifi instances on a Windows box and a Linux box. I configure a remote procedure group and it can see the names of the input ports (somewhat confusingly named 9992 here) and can connect to them but when I try to transfer a file I get an UnknownHostException. I have set the properties in the nifi.properties thus:
>
> # Site to Site properties
> nifi.remote.input.socket.host=gbrdc00015n01
> nifi.remote.input.socket.port=7354
> nifi.remote.input.secure=false
>
> # web properties #
> nifi.web.war.directory=./lib
> nifi.web.http.host=gbrdcr00015n01
> nifi.web.http.port=9995
> nifi.web.https.host=
> nifi.web.https.port=
> nifi.web.jetty.working.directory=./work/jetty
> nifi.web.jetty.threads=200
>
> Any help would be greatly appreciated.
>
> Thanks
> Joe
>
>
> 2016-05-31 11:24:11,002 ERROR [Timer-Driven Process Thread-6] o.a.nifi.remote.StandardRemoteGroupPort RemoteGroupPort[name=9992,target=http://gbrdcr00015n01:9995/nifi] <http://gbrdcr00015n01:9995/nifi]> failed to communicate with http://gbrdcr00015n01:9995/nifi <http://gbrdcr00015n01:9995/nifi> due to java.net.UnknownHostException
> 2016-05-31 11:24:11,002 ERROR [Timer-Driven Process Thread-6] o.a.nifi.remote.StandardRemoteGroupPort
> java.net.UnknownHostException: null
> at sun.nio.ch.Net.translateException(Unknown Source) ~[na:1.8.0_91]
> at sun.nio.ch.SocketAdaptor.connect(Unknown Source) ~[na:1.8.0_91]
> at org.apache.nifi.remote.client.socket.EndpointConnectionPool.establishSiteToSiteConnection(EndpointConnectionPool.java:712) ~[nifi-site-to-site-client-0.6.1.jar:0.6.1]
> at org.apache.nifi.remote.client.socket.EndpointConnectionPool.establishSiteToSiteConnection(EndpointConnectionPool.java:685) ~[nifi-site-to-site-client-0.6.1.jar:0.6.1]
> at org.apache.nifi.remote.client.socket.EndpointConnectionPool.getEndpointConnection(EndpointConnectionPool.java:301) ~[nifi-site-to-site-client-0.6.1.jar:0.6.1]
> at org.apache.nifi.remote.client.socket.SocketClient.createTransaction(SocketClient.java:129) ~[nifi-site-to-site-client-0.6.1.jar:0.6.1]
> at org.apache.nifi.remote.StandardRemoteGroupPort.onTrigger(StandardRemoteGroupPort.java:171) ~[nifi-site-to-site-0.6.1.jar:0.6.1]
> at org.apache.nifi.controller.AbstractPort.onTrigger(AbstractPort.java:227) [nifi-framework-core-api-0.6.1.jar:0.6.1]
> at org.apache.nifi.controller.tasks.ContinuallyRunConnectableTask.call(ContinuallyRunConnectableTask.java:81) [nifi-framework-core-0.6.1.jar:0.6.1]
> at org.apache.nifi.controller.tasks.ContinuallyRunConnectableTask.call(ContinuallyRunConnectableTask.java:40) [nifi-framework-core-0.6.1.jar:0.6.1]
> at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:123) [nifi-framework-core-0.6.1.jar:0.6.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_91]
> at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [na:1.8.0_91]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [na:1.8.0_91]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_91]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_91]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_91]
> at java.lang.Thread.run(Unknown Source) [na:1.8.0_91]
>
>
>
>
> _______________________________________________
>
> This message is for information purposes only, it is not a recommendation, advice, offer or solicitation to buy or sell a product or service nor an official confirmation of any transaction. It is directed at persons who are professionals and is not intended for retail customer use. Intended for recipient only. This message is subject to the terms at: www.barclays.com/emaildisclaimer <http://www.barclays.com/emaildisclaimer>.
>
> For important disclosures, please see: www.barclays.com/salesandtradingdisclaimer <http://www.barclays.com/salesandtradingdisclaimer> regarding market commentary from Barclays Sales and/or Trading, who are active market participants; and in respect of Barclays Research, including disclosures relating to specific issuers, please see http://publicresearch.barclays.com <http://publicresearch.barclays.com/>.
>
> _______________________________________________
>