Hello, The provided nifi.properties should have three properties related to python directories, the defaults are:
nifi.python.framework.source.directory=./python/framework nifi.python.extensions.source.directory.default=./python/extensions nifi.python.working.directory=./work/python One of those is missing and causing the NullPointerException. Thanks, Bryan On Wed, Jun 12, 2024 at 1:55 PM Nguyen, Kyle <kyle.ngu...@mlp.com.invalid> wrote: > > After a bit of digging, it looks like I didn’t have `nifi.python.command` > defined in my `nifi.properties`. But once I enable it, I get a > `NullPointerException`, all other things equal. Any help? > nifi_container_persistent | Caused by: java.lang.NullPointerException: > null > nifi_container_persistent | at > java.base/java.io.File.<init>(File.java:278) > nifi_container_persistent | at > org.apache.nifi.controller.FlowController.createPythonBridge(FlowController.java:873) > nifi_container_persistent | at > org.apache.nifi.controller.FlowController.<init>(FlowController.java:573) > nifi_container_persistent | at > org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:411) > nifi_container_persistent | at > org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:83) > nifi_container_persistent | at > org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:182) > nifi_container_persistent | ... 120 common frames omitted > > > > [ec2-user@ip------ nifi]$ cat ./conf/nifi.properties | grep -i --color=auto > python > > # for python extensions > > nifi.python.command=python3 > > nifi.python.extensions.source.directory.default=/opt/nifi/nifi-current/python_extensions > > > > On 2024/06/12 16:16:52 "Nguyen, Kyle" wrote: > > Hi guys, > > > > I’m aware how to add custom processors (via nar’s -> extensions folder). > > But how do you add processors that area already on the git? E.g. > > > > > > > * > > https://github.com/apache/nifi/blob/main/nifi-python-extensions/nifi-openai-module/src/main/python/PromptChatGPT.py > > > > > Bonus question: How does it work? How are some processors defined but > > don’t make it into the standard install (our install is via the docker > > image `apache/nifi:2.0.0-M3`)? Thanks! > > > > > > > [cid:image001.png@01DABCC1.BE66A940] > > Kyle Nguyen > > Corporate Technology, Software Engineer > > > > Millennium Management LLC > > 399 Park Avenue | New York, NY 10022 > > 📞 +1.212.708.1366 | 📱 +1.929.837.1788 > > mlp.com<https://www.mlp.com/home/> > > > > > > > > > > ###################################################################### > > > > The information contained in this communication is confidential and > > > > may contain information that is privileged or exempt from disclosure > > > > under applicable law. If you are not a named addressee, please notify > > > > the sender immediately and delete this email from your system. > > > > If you have received this communication, and are not a named > > > > recipient, you are hereby notified that any dissemination, > > > > distribution or copying of this communication is strictly prohibited. > > > > ###################################################################### > > > > > ###################################################################### > > The information contained in this communication is confidential and > > may contain information that is privileged or exempt from disclosure > > under applicable law. If you are not a named addressee, please notify > > the sender immediately and delete this email from your system. > > If you have received this communication, and are not a named > > recipient, you are hereby notified that any dissemination, > > distribution or copying of this communication is strictly prohibited. > > ######################################################################