You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by "Ravi Papisetti (rpapiset)" <rp...@cisco.com> on 2018/03/14 05:38:37 UTC

Connection between RPG and input port is failing via API

Hi,

Nifi version 1.5

I am trying to create connection between output port to input port at root RPG. Below is my json request:


{"revision": {"clientId": "anonymous","version": 0},"component": {"name": "","source": {  "id": "22df69f1-0162-1000-0000-00006c01773e",  "groupId": "22df42c1-0162-1000-ffff-ffffcd3f7d2b",  "type": "OUTPUT_PORT"},"destination": {  "id": "16628c20-0ed4-3372-a9cc-9b38c49aaf29",  "groupId": "ad4a6524-0161-1000-ffff-fffff8293860",  "type": "REMOTE_INPUT_PORT"}}}



This works fine if I put delay about 45 secs after creating destination port (remote input port). Otherwise it is failing with below error:

Response to create connection from out to RPG: Node xxx is unable to fulfill this request due to: Unable to find the specified destination.



This port will show up in the response from <nifihost:port>/nifi-api/remote-process-groups/" + rootRPGId. Still it complains saying unable to find specified destination.



Are there any other parameters to be checked before issuing the connection request?



Appreciate any help.



Thanks,

Ravi Papisetti






Re: Connection between RPG and input port is failing via API

Posted by Matt Gilman <ma...@gmail.com>.
Ravi,

The available ports are independently retrieved on each node. When
clustered the response to the client should only include the ports that all
nodes have discovered. However, I believe that currently, it's returning
ports that any node has discovered. I've filed a JIRA [1] to address this
issue. Thanks for reporting.

[1] https://issues.apache.org/jira/browse/NIFI-4973

On Wed, Mar 14, 2018 at 1:38 AM, Ravi Papisetti (rpapiset) <
rpapiset@cisco.com> wrote:

> Hi,
>
>
>
> Nifi version 1.5
>
>
>
> I am trying to create connection between output port to input port at root
> RPG. Below is my json request:
>
>
>
> {"revision": {"clientId": "anonymous","version": 0},"component": {"name":
> "","source": {  "id": "22df69f1-0162-1000-0000-00006c01773e",  "groupId":
> "22df42c1-0162-1000-ffff-ffffcd3f7d2b",  "type":
> "OUTPUT_PORT"},"destination": {  "id": "16628c20-0ed4-3372-a9cc-
> 9b38c49aaf29",  "groupId": "ad4a6524-0161-1000-ffff-fffff8293860",  "type":
> "REMOTE_INPUT_PORT"}}}
>
>
>
> This works fine if I put delay about 45 secs after creating destination
> port (remote input port). Otherwise it is failing with below error:
>
> Response to create connection from out to RPG: Node xxx is unable to
> fulfill this request due to: Unable to find the specified destination.
>
>
>
> This port will show up in the response from <nifihost:port>/nifi-api/
> remote-process-groups/" + rootRPGId. Still it complains saying unable to
> find specified destination.
>
>
>
> Are there any other parameters to be checked before issuing the connection
> request?
>
>
>
> Appreciate any help.
>
>
>
> Thanks,
>
> Ravi Papisetti
>
>
>
>
>
>
>