RE: NiFi 1.7.1 remote group not connecting when added through restful api until nifi restarted

2018-11-21 Thread christophe.monnet
The POST request that create an RPG returns an RemoteProcessGroupEntity whose 
ID can be used to call GET repeatedly.
At some point you will find the port in 
RemoteProcessGroupEntity.getComponent().getContents().getInputPorts() but not 
immediately after creation.

-Original Message-
From: William Gosse  
Sent: Freitag, 16 November 2018 14:06
To: users@nifi.apache.org
Subject: RE: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

"My workaround is to repeatedly call GET on the RPG until the port becomes 
available."

Can you explain a little more by what you mean by this. Or if you have an 
example please send it.

-Original Message-
From: christophe.mon...@post.ch 
Sent: Friday, November 16, 2018 12:46 AM
To: users@nifi.apache.org
Subject: RE: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

[CAUTION: This email originated from outside of Kodak Alaris. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.] 

Hi William

My experience with using the REST API to create RPG is that you must wait “some 
time” before the port becomes available. A restart is not needed though.
My workaround is to repeatedly call GET on the RPG until the port becomes 
available. It typically takes more than 10 seconds on a 5 nodes cluster.

Chris

-Original Message-
From: William Gosse 
Sent: Donnerstag, 15 November 2018 18:03
To: users@nifi.apache.org
Subject: RE: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

I don't believe I see any error messages on the initial remote process group 
that gets created.

I do see the error message when I do a restart and there are existing remote 
process groups but they do seem to connect eventually

It's only the initial create of  the first remote process group that seems to 
be acting weird.

-Original Message-
From: Koji Kawamura 
Sent: Thursday, November 15, 2018 1:05 AM
To: users@nifi.apache.org
Subject: Re: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

[CAUTION: This email originated from outside of Kodak Alaris. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.] 

Hello William,

> fails to connect to the existing input port until I do a restart of 
> NiFi
Is there any error message when it fails? Connection refused?
It should not require a NiFi restart to establish connection.

Thanks,
Koji



On Thu, Nov 15, 2018 at 1:38 AM William Gosse  
wrote:
>
> I'm using NiFi's restful api to create a process group from a template 
> that contains a file folder listener and a remote group. I also have 
> an existing input port going to a process group that has the file 
> fetch and everything else for processing the file that was fetched.
> This is not added by a restful api but is loaded from a template after 
> the initial startup of Nifi. What I wind up with is a list fetch 
> pattern that should cluster ready/
>
> My problem is that the first time I use the rest api to add the listener 
> process group the remote group that's inside of it fails to connect to the 
> existing input port until I do a restart of NiFi. At that point all 
> subsequent listeners I add seem to connect just fine.
>
> Is there way that I can cause the initial connection to occur without having 
> to perform a restart?
>
>


RE: NiFi 1.7.1 remote group not connecting when added through restful api until nifi restarted

2018-11-16 Thread William Gosse
"My workaround is to repeatedly call GET on the RPG until the port becomes 
available."

Can you explain a little more by what you mean by this. Or if you have an 
example please send it.

-Original Message-
From: christophe.mon...@post.ch  
Sent: Friday, November 16, 2018 12:46 AM
To: users@nifi.apache.org
Subject: RE: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

[CAUTION: This email originated from outside of Kodak Alaris. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.] 

Hi William

My experience with using the REST API to create RPG is that you must wait “some 
time” before the port becomes available. A restart is not needed though.
My workaround is to repeatedly call GET on the RPG until the port becomes 
available. It typically takes more than 10 seconds on a 5 nodes cluster.

Chris

-Original Message-
From: William Gosse 
Sent: Donnerstag, 15 November 2018 18:03
To: users@nifi.apache.org
Subject: RE: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

I don't believe I see any error messages on the initial remote process group 
that gets created.

I do see the error message when I do a restart and there are existing remote 
process groups but they do seem to connect eventually

It's only the initial create of  the first remote process group that seems to 
be acting weird.

-Original Message-
From: Koji Kawamura 
Sent: Thursday, November 15, 2018 1:05 AM
To: users@nifi.apache.org
Subject: Re: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

[CAUTION: This email originated from outside of Kodak Alaris. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.] 

Hello William,

> fails to connect to the existing input port until I do a restart of 
> NiFi
Is there any error message when it fails? Connection refused?
It should not require a NiFi restart to establish connection.

Thanks,
Koji



On Thu, Nov 15, 2018 at 1:38 AM William Gosse  
wrote:
>
> I'm using NiFi's restful api to create a process group from a template 
> that contains a file folder listener and a remote group. I also have 
> an existing input port going to a process group that has the file 
> fetch and everything else for processing the file that was fetched.
> This is not added by a restful api but is loaded from a template after 
> the initial startup of Nifi. What I wind up with is a list fetch 
> pattern that should cluster ready/
>
> My problem is that the first time I use the rest api to add the listener 
> process group the remote group that's inside of it fails to connect to the 
> existing input port until I do a restart of NiFi. At that point all 
> subsequent listeners I add seem to connect just fine.
>
> Is there way that I can cause the initial connection to occur without having 
> to perform a restart?
>
>


RE: NiFi 1.7.1 remote group not connecting when added through restful api until nifi restarted

2018-11-15 Thread christophe.monnet
Hi William

My experience with using the REST API to create RPG is that you must wait “some 
time” before the port becomes available. A restart is not needed though.
My workaround is to repeatedly call GET on the RPG until the port becomes 
available. It typically takes more than 10 seconds on a 5 nodes cluster.

Chris

-Original Message-
From: William Gosse  
Sent: Donnerstag, 15 November 2018 18:03
To: users@nifi.apache.org
Subject: RE: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

I don't believe I see any error messages on the initial remote process group 
that gets created.

I do see the error message when I do a restart and there are existing remote 
process groups but they do seem to connect eventually

It's only the initial create of  the first remote process group that seems to 
be acting weird.

-Original Message-
From: Koji Kawamura 
Sent: Thursday, November 15, 2018 1:05 AM
To: users@nifi.apache.org
Subject: Re: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

[CAUTION: This email originated from outside of Kodak Alaris. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.] 

Hello William,

> fails to connect to the existing input port until I do a restart of 
> NiFi
Is there any error message when it fails? Connection refused?
It should not require a NiFi restart to establish connection.

Thanks,
Koji



On Thu, Nov 15, 2018 at 1:38 AM William Gosse  
wrote:
>
> I'm using NiFi's restful api to create a process group from a template 
> that contains a file folder listener and a remote group. I also have 
> an existing input port going to a process group that has the file 
> fetch and everything else for processing the file that was fetched.
> This is not added by a restful api but is loaded from a template after 
> the initial startup of Nifi. What I wind up with is a list fetch 
> pattern that should cluster ready/
>
> My problem is that the first time I use the rest api to add the listener 
> process group the remote group that's inside of it fails to connect to the 
> existing input port until I do a restart of NiFi. At that point all 
> subsequent listeners I add seem to connect just fine.
>
> Is there way that I can cause the initial connection to occur without having 
> to perform a restart?
>
>


Re: NiFi 1.7.1 remote group not connecting when added through restful api until nifi restarted

2018-11-15 Thread Koji Kawamura
Hi William,

> I do see the error message when I do a restart and there are existing remote 
> process groups but they do seem to connect eventually

This is a known behavior for RPGs connecting to the same NiFi. During
start up process, RemoteProcessGroups try to get remote info before
NiFi API gets ready.
They connect eventually. But again, you don't have to do restart to
make RPGs work after you instantiated it by REST API.

> It's only the initial create of  the first remote process group that seems to 
> be acting weird.

Please elaborate how weird it behaves. If the added RPG doesn't
recognize the existing ports, then I'd add some wait logic as Chris
suggested.

Thanks,
Koji

On Fri, Nov 16, 2018 at 2:03 AM William Gosse
 wrote:
>
> I don't believe I see any error messages on the initial remote process group 
> that gets created.
>
> I do see the error message when I do a restart and there are existing remote 
> process groups but they do seem to connect eventually
>
> It's only the initial create of  the first remote process group that seems to 
> be acting weird.
>
> -Original Message-
> From: Koji Kawamura 
> Sent: Thursday, November 15, 2018 1:05 AM
> To: users@nifi.apache.org
> Subject: Re: NiFi 1.7.1 remote group not connecting when added through 
> restful api until nifi restarted
>
> [CAUTION: This email originated from outside of Kodak Alaris. Do not click 
> links or open attachments unless you recognize the sender and know the 
> content is safe.] 
>
> Hello William,
>
> > fails to connect to the existing input port until I do a restart of
> > NiFi
> Is there any error message when it fails? Connection refused?
> It should not require a NiFi restart to establish connection.
>
> Thanks,
> Koji
>
>
>
> On Thu, Nov 15, 2018 at 1:38 AM William Gosse  
> wrote:
> >
> > I'm using NiFi's restful api to create a process group from a template
> > that contains a file folder listener and a remote group. I also have
> > an existing input port going to a process group that has the file
> > fetch and everything else for processing the file that was fetched.
> > This is not added by a restful api but is loaded from a template after
> > the initial startup of Nifi. What I wind up with is a list fetch
> > pattern that should cluster ready/
> >
> > My problem is that the first time I use the rest api to add the listener 
> > process group the remote group that's inside of it fails to connect to the 
> > existing input port until I do a restart of NiFi. At that point all 
> > subsequent listeners I add seem to connect just fine.
> >
> > Is there way that I can cause the initial connection to occur without 
> > having to perform a restart?
> >
> >


RE: NiFi 1.7.1 remote group not connecting when added through restful api until nifi restarted

2018-11-15 Thread William Gosse
I don't believe I see any error messages on the initial remote process group 
that gets created.

I do see the error message when I do a restart and there are existing remote 
process groups but they do seem to connect eventually

It's only the initial create of  the first remote process group that seems to 
be acting weird.

-Original Message-
From: Koji Kawamura  
Sent: Thursday, November 15, 2018 1:05 AM
To: users@nifi.apache.org
Subject: Re: NiFi 1.7.1 remote group not connecting when added through restful 
api until nifi restarted

[CAUTION: This email originated from outside of Kodak Alaris. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.] 

Hello William,

> fails to connect to the existing input port until I do a restart of 
> NiFi
Is there any error message when it fails? Connection refused?
It should not require a NiFi restart to establish connection.

Thanks,
Koji



On Thu, Nov 15, 2018 at 1:38 AM William Gosse  
wrote:
>
> I'm using NiFi's restful api to create a process group from a template 
> that contains a file folder listener and a remote group. I also have 
> an existing input port going to a process group that has the file 
> fetch and everything else for processing the file that was fetched. 
> This is not added by a restful api but is loaded from a template after 
> the initial startup of Nifi. What I wind up with is a list fetch 
> pattern that should cluster ready/
>
> My problem is that the first time I use the rest api to add the listener 
> process group the remote group that's inside of it fails to connect to the 
> existing input port until I do a restart of NiFi. At that point all 
> subsequent listeners I add seem to connect just fine.
>
> Is there way that I can cause the initial connection to occur without having 
> to perform a restart?
>
>


RE: NiFi 1.7.1 remote group not connecting when added through restful api until nifi restarted

2018-11-14 Thread christophe.monnet
Hi William

My experience with using the REST API to create RPG is that you must wait "some 
time" before the port becomes available. A restart is not needed though.
My workaround is to repeatedly call GET on the RPG until the port becomes 
available. It typically takes more than 10 seconds on a 5 nodes cluster.

Chris

From: William Gosse 
Sent: Mittwoch, 14 November 2018 17:39
To: users@nifi.apache.org
Subject: NiFi 1.7.1 remote group not connecting when added through restful api 
until nifi restarted


I'm using NiFi's restful api to create a process group from a template that 
contains a file folder listener and a remote group. I also have an existing 
input port going to a process group that has the file fetch and everything else 
for processing the file that was fetched. This is not added by a restful api 
but is loaded from a template after the initial startup of Nifi. What I wind up 
with is a list fetch pattern that should cluster ready/

My problem is that the first time I use the rest api to add the listener 
process group the remote group that's inside of it fails to connect to the 
existing input port until I do a restart of NiFi. At that point all subsequent 
listeners I add seem to connect just fine.

Is there way that I can cause the initial connection to occur without having to 
perform a restart?



Re: NiFi 1.7.1 remote group not connecting when added through restful api until nifi restarted

2018-11-14 Thread Koji Kawamura
Hello William,

> fails to connect to the existing input port until I do a restart of NiFi
Is there any error message when it fails? Connection refused?
It should not require a NiFi restart to establish connection.

Thanks,
Koji



On Thu, Nov 15, 2018 at 1:38 AM William Gosse
 wrote:
>
> I'm using NiFi's restful api to create a process group from a template that 
> contains a file folder listener and a remote group. I also have an existing 
> input port going to a process group that has the file fetch and everything 
> else for processing the file that was fetched. This is not added by a restful 
> api but is loaded from a template after the initial startup of Nifi. What I 
> wind up with is a list fetch pattern that should cluster ready/
>
> My problem is that the first time I use the rest api to add the listener 
> process group the remote group that's inside of it fails to connect to the 
> existing input port until I do a restart of NiFi. At that point all 
> subsequent listeners I add seem to connect just fine.
>
> Is there way that I can cause the initial connection to occur without having 
> to perform a restart?
>
>