Anurag,

Your Python script should not need to know about FlowFiles. Rather, the content 
of the FlowFile
will be streamed to the Python script's "Standard In" and whatever the script 
writes to "Standard Out"
will become the new content of the FlowFile.

Does this make sense?

Thanks
-Mark


> On Feb 15, 2016, at 9:24 AM, anurag sharma <[email protected]> wrote:
> 
> Hi,
> 
> I am trying to use python script in Apache NIFI for ExecuteStreamCommand
> processor, but its not working properly.
> I don't know how to read data from FlowFile and how to create FlowFile in
> Python script.
> Could you please provide me a sample python script.
> 
> I found your email from the below page:
> https://mail-archives.apache.org/mod_mbox/nifi-dev/201506.mbox/%3ccadt6bvsnukrjhldrtz29wmqkd85xjmqgykgqcpw881wvost...@mail.gmail.com%3E
> 
> Thanks & Reagrds,
> Anurag

Reply via email to