Not able to connect through site-to-site remote professor group to the last nifi in a nifi chaining

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

Not able to connect through site-to-site remote professor group to the last nifi in a nifi chaining

Puspak
# Site to Site properties-for Nifi1
# nifi.remote.input.host=
# nifi.remote.input.secure=false
# nifi.remote.input.socket.port=8443
# nifi.remote.input.http.enabled=true
# nifi.remote.input.http.transaction.ttl=30 sec
# nifi.remote.contents.cache.expiration=30 secs
===============================================
# Site to Site properties- for Nifi2
nifi.remote.input.host=FQDN of Nifi2
nifi.remote.input.secure=false
nifi.remote.input.socket.port=8443
nifi.remote.input.http.enabled=true
nifi.remote.input.http.transaction.ttl=30 sec
nifi.remote.contents.cache.expiration=30 secs
================================================
# Site to Site properties- for Nifi3
nifi.remote.input.host=FQDN of Nifi3
nifi.remote.input.secure=false
nifi.remote.input.socket.port=
nifi.remote.input.http.enabled=true
nifi.remote.input.http.transaction.ttl=30 sec
=================================================
Basically i have 3 nifi in chain Nifi1--> Nifi2-->Nifi3 connected via
remoteproceddor group and i have the site-to-site properties configured as
above.
I am getting the connectivity and push message successfully from
Nifi1->Nifi2 , but from nifi2->nifi3 i am not able to get the connectivity
and push message .

I am getting the below error when trying to push message from Nifi2->Nifi3

2019-03-02 07:41:06,181 WARN [Timer-Driven Process Thread-4]
o.a.n.controller.tasks.ConnectableTask Administratively Yielding
RemoteGroupPort[name=from ind23 Nifi,targets=http://FQDN-OF-NIFI3:8080/nifi]
due to uncaught Exception: java.lang.RuntimeException:
java.lang.IllegalArgumentException: Invalid URL: http://FQDN-OF-NIFI3
:8080/nifi-api
java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid URL:
http://FQDN-OF-NIFI3 :8080/nifi-api
        at org.apache.nifi.controller.AbstractPort.onTrigger(AbstractPort.java:257)




--
Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Not able to connect through site-to-site remote professor group to the last nifi in a nifi chaining

Koji Kawamura-2
Hello,

The error message indicates that the URL is not in a valid format.
Is there a trailing white space with this configuration?
nifi.remote.input.host=FQDN of Nifi3

Thanks,
Koji

On Sat, Mar 2, 2019 at 12:00 PM Puspak <[hidden email]> wrote:

>
> # Site to Site properties-for Nifi1
> # nifi.remote.input.host=
> # nifi.remote.input.secure=false
> # nifi.remote.input.socket.port=8443
> # nifi.remote.input.http.enabled=true
> # nifi.remote.input.http.transaction.ttl=30 sec
> # nifi.remote.contents.cache.expiration=30 secs
> ===============================================
> # Site to Site properties- for Nifi2
> nifi.remote.input.host=FQDN of Nifi2
> nifi.remote.input.secure=false
> nifi.remote.input.socket.port=8443
> nifi.remote.input.http.enabled=true
> nifi.remote.input.http.transaction.ttl=30 sec
> nifi.remote.contents.cache.expiration=30 secs
> ================================================
> # Site to Site properties- for Nifi3
> nifi.remote.input.host=FQDN of Nifi3
> nifi.remote.input.secure=false
> nifi.remote.input.socket.port=
> nifi.remote.input.http.enabled=true
> nifi.remote.input.http.transaction.ttl=30 sec
> =================================================
> Basically i have 3 nifi in chain Nifi1--> Nifi2-->Nifi3 connected via
> remoteproceddor group and i have the site-to-site properties configured as
> above.
> I am getting the connectivity and push message successfully from
> Nifi1->Nifi2 , but from nifi2->nifi3 i am not able to get the connectivity
> and push message .
>
> I am getting the below error when trying to push message from Nifi2->Nifi3
>
> 2019-03-02 07:41:06,181 WARN [Timer-Driven Process Thread-4]
> o.a.n.controller.tasks.ConnectableTask Administratively Yielding
> RemoteGroupPort[name=from ind23 Nifi,targets=http://FQDN-OF-NIFI3:8080/nifi]
> due to uncaught Exception: java.lang.RuntimeException:
> java.lang.IllegalArgumentException: Invalid URL: http://FQDN-OF-NIFI3
> :8080/nifi-api
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid URL:
> http://FQDN-OF-NIFI3 :8080/nifi-api
>         at org.apache.nifi.controller.AbstractPort.onTrigger(AbstractPort.java:257)
>
>
>
>
> --
> Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Not able to connect through site-to-site remote professor group to the last nifi in a nifi chaining

Puspak
Thank a lot Koji for the response .

The issue was because of the trailing white space as you have mentioned .

Regards



--
Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/