[ 
https://issues.apache.org/jira/browse/NIFI-10287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nissim Shiman reassigned NIFI-10287:
------------------------------------

    Assignee: Nissim Shiman

> ExecuteScript processor not supporting Module Directory for python
> ------------------------------------------------------------------
>
>                 Key: NIFI-10287
>                 URL: https://issues.apache.org/jira/browse/NIFI-10287
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Nissim Shiman
>            Assignee: Nissim Shiman
>            Priority: Major
>
> The ExecuteScript processor currently does not support pointing to python 
> modules.
> The Module Directory property is unable to find modules it is set to. So for 
> example
> when Script Engine is set to python
> and Script Body is set to:
> {code:java}
> flowFile = session.get()
> flowFile = session.putAttribute(flowFile,"helloKey",hello.hello())
> session.transfer(flowFile, REL_SUCCESS)
> {code}
> and Module Directory is set to /tmp/testModule
> and /tmp/testModule has a file in it named hello.py 
> with the code
> {code:java}
> def hello():
>   return "hello"
> {code}
> the processor roll back the session saying it cannot find the hello module
> Also, if Module Directory property is set to /usr/lib/python<version number> 
> (or wherever python packages are installed) the processor will AdminYield 
> when flowfile passes through.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to