Reputation: 1
How to set properties (attribute) in nifi processor using pure Python in ExecuteStreamCommand processor I don't want to use Jython, I know it can be done using pinyapi. But don't know how to do it. I just want to create an attribute using Python script.
Upvotes: 0
Views: 275
Reputation: 37524
How to set properties(attribute) in nifi processor using pure python in ExecuteStreamCommand processor I don't want to use Jython
You can't do it from ExecuteStreamCommand
. The Python script doesn't have the ability to interact with the ProcessSession
, which is what it would need to set an attribute. You'd need to set up some operations after it to add the attributes like an UpdateAttribute
instance.
Upvotes: 0