Re: Site To Site - Transaction NULL

2020-09-28 Thread Bryan Bende
Hi Jeremy,

The createTransaction method says...

@return a Transaction to use for sending or receiving data, or
* null if all nodes are penalized.

Is it possible that however your client was configured, it hasn't
successfully pulled the information about the nodes in the cluster, or
maybe it has but they are unreachable, and thus all nodes are
penalized so there is no node to pull data from?

Thanks,

Bryan

On Wed, Sep 23, 2020 at 1:23 PM Jeremy Dyer  wrote:
>
> Hello friends,
>
> I'm trying to use the Java site-to-site client to receive data from a NiFi 
> "Output Port". It's been awhile since I have done this and was using the 
> "Spark-Receiver" as a general guideline.
>
> When I attempt to create my Transaction object it is always NULL. My code is 
> simply
>
> ```final Transaction transaction = 
> client.createTransaction(TransferDirection.RECEIVE); ``` and that gives me a 
> NULL Transaction object.
>
> My question is has something changed I am unaware of where this is no longer 
> a valid approach? If it is still valid what might be causing the NULL 
> response from the SocketClient and its EndpointConnectionPool?
>
> Thanks,
> Jeremy Dyer


Site To Site - Transaction NULL

2020-09-23 Thread Jeremy Dyer
Hello friends,

I'm trying to use the Java site-to-site client to receive data from a NiFi
"Output Port". It's been awhile since I have done this and was using the
"Spark-Receiver" as a general guideline.

When I attempt to create my Transaction object it is always NULL. My code
is simply

```final Transaction transaction =
client.createTransaction(TransferDirection.RECEIVE); ``` and that gives me
a NULL Transaction object.

My question is has something changed I am unaware of where this is no
longer a valid approach? If it is still valid what might be causing the
NULL response from the SocketClient and its EndpointConnectionPool?

Thanks,
Jeremy Dyer