Hello,

I believe the confusion here is coming from the fact that Output Ports on the 
Root Group
(the very top level of your canvas) are treated a little bit differently than 
other ports in your graph.
The idea of a port is that it lets data into or out of your process group 
(depending on if it's an input
port or output port).

Ports on the Root Group then let data into or out of your entire NiFi instance. 
This is accomplished
via site-to-site. So if you want to use a port for site-to-site communications, 
that port must be on
the Root Group. From the error message here, we see that the port is a Local 
Port
("LocalPort[name=Data_For_Spark,id=6063528e-6313-4cba-93a7-351c396eaed4]") 
rather than a
Root Group Port.

So you will need to create an Output Port on your root group and then connect 
your current Process Group
to it by dragging a connection from the Process Group to that port.

Does this make sense?

Thanks
-Mark


> On May 20, 2016, at 9:38 AM, pradeepbill <[email protected]> wrote:
> 
> I have a spark application reading from an output port in NIFI, and I have
> the spark application running, but when I try to start the nifi flow, it
> says below error message, where should I define the "Output connection"
> ?.Please advice
> 
> 
> Node sabn6:8282 is unable to fulfill this request due to:
> LocalPort[name=Data_For_Spark,id=6063528e-6313-4cba-93a7-351c396eaed4] is
> not in a valid state: Output connection for port 'Data_For_Spark' is not
> defined
> 
> 
> 
> --
> View this message in context: 
> http://apache-nifi-developer-list.39713.n7.nabble.com/Output-connection-is-invalid-tp10572.html
> Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Reply via email to