Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Raymond CUI RaymondCui21

🎯
Focusing
View GitHub Profile
@RaymondCui21
RaymondCui21 / read-flowfile-contents.py
Created Jun 4, 2020 — forked from ijokarumawak/read-flowfile-contents.py
Example Python script to use from NiFi ExecuteScript processor which reads the first line from an incoming flow file.
View read-flowfile-contents.py
from org.apache.nifi.processors.script import ExecuteScript
from org.apache.nifi.processor.io import InputStreamCallback
from java.io import BufferedReader, InputStreamReader
class ReadFirstLine(InputStreamCallback) :
__line = None;
def __init__(self) :
pass