You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Ashwini Kumar <ku...@yahoo.com.INVALID> on 2024/04/25 23:32:56 UTC
Python Processor and relationships
I created a Python Nifi Processor just as in the standard python documentation. This is NOT an ExecuteScript processor.I am able to load the python processor in Nifi but when I click the Configure Processor -> Relationships tab, I see no relationships there. This renders the Python processor useless. We cannot forward the resulting flowfile to any other downstream processors. The Error I get when trying to do so is -> "WriteHelloWorld' does not support any relationships.The basic example in the documentation that I am using returns FlowFileTransformResult with a success relationship but this being a scripted language, NIFI may not know in advance what the relationships may be.Am I missing any steps in defining relationships for python processors?Steps:Created python processor in NifiLoaded it in NifiTried to connected it to PutFile processor Got message stating that my Python processor does not define relationships.
Thanks,Ashwini
Re: Python Processor and relationships
Posted by Pierre Villard <pi...@gmail.com>.
Hi,
Are you in a position to share the code of your python processor? Did you
implement getRelationships(self) in your processor?
Le ven. 26 avr. 2024, 06:52, Ashwini Kumar <ku...@yahoo.com.invalid>
a écrit :
> I created a Python Nifi Processor just as in the standard python
> documentation. This is NOT an ExecuteScript processor.I am able to load the
> python processor in Nifi but when I click the Configure Processor ->
> Relationships tab, I see no relationships there. This renders the Python
> processor useless. We cannot forward the resulting flowfile to any other
> downstream processors. The Error I get when trying to do so is ->
> "WriteHelloWorld' does not support any relationships.The basic example in
> the documentation that I am using returns FlowFileTransformResult with a
> success relationship but this being a scripted language, NIFI may not know
> in advance what the relationships may be.Am I missing any steps in defining
> relationships for python processors?Steps:Created python processor in
> NifiLoaded it in NifiTried to connected it to PutFile processor Got message
> stating that my Python processor does not define relationships.
> Thanks,Ashwini
>