Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Niif : Execute script Error (cannot create pystring with non-byte value)

Highlighted

Niif : Execute script Error (cannot create pystring with non-byte value)

I am trying to parse the flow file using executeScript processor. Basically, what I am doing is splitting the flowfile contents using python script and make a csv out of it. It ran fine for my sample data. But every prod message is about 10000 chars long.

 

In order to split this and convert the flow file to a csv, the python code became large. Running this got me error1. I tried converting this to pyc file and then I got error2. 

 

Please let me know what can I do to resolve this.

 

---------------------- error1 below ----------------------

 error1.JPG

---------------------- error2 below ----------------------

error2.JPG