Member since
04-24-2018
4
Posts
0
Kudos Received
0
Solutions
04-27-2018
07:45 PM
Thanks for the reply! How did you point to the faker module in the Module Directory attribute? I'm on Windows and I've tried full Windows paths, unix style absolute paths, and forward and backward slashes on both. I can't seem to even do a simple import faker I'm on Nifi 1.6 EDIT: I think I got it finally. Referring to the faker folder itself wasn't working for me but when I set the path to site-packages instead, it seemed to work. I used the full Windows filepath
... View more
04-26-2018
11:54 PM
I am trying to import the Faker module into my ExecuteScript python script. I've added the file path to the faker directory in the module directory attribute in the ExecuteScript processor: ('C:/Users/xxxx/AppData/Local/Programs/Python/Python35/Lib/site-packages/faker') but I get an error when trying to import it in my script: ImportError: No module named faker in <script> at line number X I've also tried to add the module using sys.path.append() call in the script, no dice. I found this earlier post dealing with a similar question. I understand that the Jython script engine can only include pure Python modules. I may be mistaken but I thought Faker was pure Python. However, if that's not the case, Can I add the module using ExecuteStreamCommand or ExecuteProcess? What is the procedure for that?
... View more
Labels:
- Labels:
-
Apache NiFi
04-24-2018
06:35 PM
Hi @Matt Burgess, Thanks for this article, it is very helpful. There seems to be some formatting error in the code snippets however, making it hard to read. Not sure if its my browser or what. Can you fix/update the markup for this article?
... View more