I need to implement ExecuteScript in Nifi in order to do column transposition, and I am using pyspark as means to do that.
But the problem says "failed to process due to javax.script.ScriptExeption: ImportError: No module named pyspark in at line number 1:"
I set the path to spark and pyspark like this for module directory setting in ExecuteScript property.
C:\Users\username\Desktop\spark\spark-2.4.3-bin-hadoop2.7\hadoop,
C:\Users\username\Desktop\spark\spark-2.4.3-bin-hadoop2.7\bin\pyspark
But it did not work.
I am afraid this is very fundamental issue, could not figure out half a day..