Skip to content

Instantly share code, notes, and snippets.

View RaymondCui21's full-sized avatar

Raymond CUI RaymondCui21

View GitHub Profile
RaymondCui21 /
Created June 4, 2020 05:13 — forked from ijokarumawak/
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 import InputStreamCallback
from import BufferedReader, InputStreamReader
class ReadFirstLine(InputStreamCallback) :
__line = None;
def __init__(self) :