Skip to content

Instantly share code, notes, and snippets.

View RaymondCui21's full-sized avatar
🎯
Focusing

Raymond CUI RaymondCui21

🎯
Focusing
View GitHub Profile
@RaymondCui21
RaymondCui21 / read-flowfile-contents.py
Created June 4, 2020 05:13 — 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.
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