Member since
02-20-2024
8
Posts
2
Kudos Received
0
Solutions
03-05-2024
07:11 AM
@SAMSAL I've created a new python processor following your instructions and it worked. The in box processors work too. So I confirm the "Windows bin" solution worked on my side too. Again thank you for your help!
... View more
03-04-2024
08:55 PM
2 Kudos
@SAMSAL a huge thanks! I only tried the bin solution on the work\python\controller and nifi no longer crashes. First thing tomorrow I'll try it with a new processor. Also thanks for the tips about dependencies 🙂
... View more
03-04-2024
11:32 AM
Hi. I'm trying to use Python extensions with Nifi. I've uncommented the line nifi.python.command=python3 in nifi.properties but Nifi always crash when I try to run it. When I re-comment the line, Nifi starts and works fine. I've read this thread https://community.cloudera.com/t5/Support-Questions/Nifi-2-0-0-M1-Installation-error-with-python/m-p/381430 and tried to follow the instructions in the solutions. It still crashes. I'm posting here because the problem is on Windows instead of Linux. Thanks for your help! OS Windows 10 home edition Nifi version nifi-2.0.0-M2 Java installed version 21.0.2 Python installed version 3.11.8 nifi.properties In nifi.properties I changed the line from nifi.python.command=python3 to nifi.python.command=python Venv I made sure the python venv package is installed by issuing this command python -m venv which gave this message usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear] [--upgrade] [--without-pip] [--prompt PROMPT] [--upgrade-deps] ENV_DIR [ENV_DIR ...] venv: error: the following arguments are required: ENV_DIR showing that venv is installed Java version java --version java 21.0.2 2024-01-16 LTS Java(TM) SE Runtime Environment (build 21.0.2+13-LTS-58) Java HotSpot(TM) 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing) Python version python --version Python 3.11.8 The java_home env variable echo %java_home% C:\Program Files\Java\jdk-21 python3 python3 does not work. There is no python3 command in the python installation folder. Only a .dll : dir C:\Users\ASUS\AppData\Local\Programs\Python\Python311 <DIR> DLLs <DIR> Doc <DIR> include <DIR> Lib <DIR> libs LICENSE.txt NEWS.txt python.exe python3.dll python311.dll pythonw.exe <DIR> Scripts <DIR> tcl <DIR> Tools vcruntime140.dll vcruntime140_1.dll That's why I changed the line to nifi.python.command=python in nifi.properties The work/python folder Nothing was copied to the ./work/python/controller/bin folder. The folder is not even existing. nifi-bootstrap.log 2024-03-04 14:06:43,388 INFO [main] org.apache.nifi.bootstrap.RunNiFi {javaVersion=21.0.2, availableProcessors=12, minimumHeapSize=1g, maximumHeapSize=1g} 2024-03-04 14:06:43,426 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi... 2024-03-04 14:06:43,426 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: C:\Users\ASUS\Desktop\m 2024-03-04 14:06:43,427 INFO [main] org.apache.nifi.bootstrap.Command Command: C:\Program Files\Java\jdk-21\bin\java.exe -classpath C:\Users\ASUS\Desktop\m\.\conf;C:\Users\ASUS\Desktop\m\.\lib\jcl-over-slf4j-2.0.11.jar;C:\Users\ASUS\Desktop\m\.\lib\jul-to-slf4j-2.0.11.jar;C:\Users\ASUS\Desktop\m\.\lib\log4j-over-slf4j-2.0.11.jar;C:\Users\ASUS\Desktop\m\.\lib\logback-classic-1.4.14.jar;C:\Users\ASUS\Desktop\m\.\lib\logback-core-1.4.14.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-api-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-framework-api-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-nar-utils-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-per-process-group-logging-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-properties-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-property-utils-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-python-framework-api-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-runtime-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-server-api-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-stateless-api-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\nifi-stateless-bootstrap-2.0.0-M2.jar;C:\Users\ASUS\Desktop\m\.\lib\slf4j-api-2.0.11.jar -Xmx1g -Djava.awt.headless=true -Xms1g -Djavax.security.auth.useSubjectCredsOnly=true -Dsun.net.http.allowRestrictedHeaders=true -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dcurator-log-only-first-connection-issue-as-error-level=true -Dnifi.properties.file.path=C:\Users\ASUS\Desktop\m\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=52900 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=C:\Users\ASUS\Desktop\m\bin\..\\logs org.apache.nifi.NiFi 2024-03-04 14:06:43,433 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\Users\ASUS\Desktop\m\bin\..\run\nifi.pid; this may allows others to have access to the key needed to communicate with NiFi. Permissions should be changed so that only the owner can read this file 2024-03-04 14:06:43,437 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\Users\ASUS\Desktop\m\bin\..\run\nifi.status; this may allows others to have access to the key needed to communicate with NiFi. Permissions should be changed so that only the owner can read this file 2024-03-04 14:06:43,446 INFO [main] org.apache.nifi.bootstrap.Command Application Process [12884] launched 2024-03-04 14:06:43,914 WARN [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the owner can read pid file C:\Users\ASUS\Desktop\m\bin\..\run\nifi.pid; this may allows others to have access to the key needed to communicate with NiFi. Permissions should be changed so that only the owner can read this file 2024-03-04 14:06:43,918 WARN [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the owner can read status file C:\Users\ASUS\Desktop\m\bin\..\run\nifi.status; this may allows others to have access to the key needed to communicate with NiFi. Permissions should be changed so that only the owner can read this file 2024-03-04 14:06:43,921 INFO [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for Bootstrap requests on port 52901 2024-03-04 14:07:01,881 ERROR [NiFi logging handler] org.apache.nifi.StdErr Failed to start web server: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0: Error creating bean with name 'securityFilterChain' defined in org.apache.nifi.web.security.configuration.WebSecurityConfiguration: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 2: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation 2024-03-04 14:07:01,881 ERROR [NiFi logging handler] org.apache.nifi.StdErr Shutting down... 2024-03-04 14:07:03,552 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi nifi-app.log . . . 2024-03-04 14:07:00,427 INFO [main] org.apache.nifi.py4j.PythonProcess Creating Python Virtual Environment .\work\python\controller 2024-03-04 14:07:00,561 INFO [main] o.apache.nifi.py4j.StandardPythonBridge Shutting down Python Server 2024-03-04 14:07:00,562 INFO [main] org.apache.nifi.py4j.PythonProcess Shutting down Python Process null 2024-03-04 14:07:00,563 INFO [main] o.apache.nifi.py4j.StandardPythonBridge Successfully shutdown Python Server 2024-03-04 14:07:00,577 INFO [main] o.a.n.a.service.EntityStoreAuditService Environment closed 2024-03-04 14:07:00,580 ERROR [main] o.s.web.context.ContextLoader Context initialization failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0: Error creating bean with name 'securityFilterChain' defined in org.apache.nifi.web.security.configuration.WebSecurityConfiguration: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 2: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:884) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:837) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:497) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1414) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:949) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:615) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:102) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1582) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:490) at org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:670) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1316) at org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1223) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1042) at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1147) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1039) at org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:496) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.server.Server.start(Server.java:622) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.server.Server.doStart(Server.java:563) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:773) at org.apache.nifi.NiFi.<init>(NiFi.java:172) at org.apache.nifi.NiFi.<init>(NiFi.java:83) at org.apache.nifi.NiFi.main(NiFi.java:332) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityFilterChain' defined in org.apache.nifi.web.security.configuration.WebSecurityConfiguration: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 2: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:797) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1633) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1597) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1488) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1375) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:876) ... 44 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:797) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:236) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1350) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1187) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:408) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:906) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:784) ... 60 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:184) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:120) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1812) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1271) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:906) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:784) ... 83 common frames omitted Caused by: java.lang.IllegalStateException: Failed to communicate with Python Controller at org.apache.nifi.controller.FlowController.<init>(FlowController.java:581) at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:411) at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:83) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178) ... 95 common frames omitted Caused by: java.io.IOException: Failed to create Python Environment .\work\python\controller: process existed with code 9009 at org.apache.nifi.py4j.PythonProcess.setupEnvironment(PythonProcess.java:223) at org.apache.nifi.py4j.PythonProcess.start(PythonProcess.java:102) at org.apache.nifi.py4j.StandardPythonBridge.start(StandardPythonBridge.java:78) at org.apache.nifi.components.ClassLoaderAwarePythonBridge.start(ClassLoaderAwarePythonBridge.java:52) at org.apache.nifi.controller.FlowController.<init>(FlowController.java:579) ... 98 common frames omitted 2024-03-04 14:07:00,582 WARN [main] o.e.jetty.ee10.webapp.WebAppContext Failed startup of context oeje10w.WebAppContext@4ec427{nifi-api,/nifi-api,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-api-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@714c74eb{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-api-2.0.0-M2.war} org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0: Error creating bean with name 'securityFilterChain' defined in org.apache.nifi.web.security.configuration.WebSecurityConfiguration: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 2: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:884) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:837) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:497) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1414) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:949) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:615) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:102) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1582) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:490) at org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:670) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1316) at org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1223) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1042) at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1147) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1039) at org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:496) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.server.Server.start(Server.java:622) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.server.Server.doStart(Server.java:563) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:773) at org.apache.nifi.NiFi.<init>(NiFi.java:172) at org.apache.nifi.NiFi.<init>(NiFi.java:83) at org.apache.nifi.NiFi.main(NiFi.java:332) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityFilterChain' defined in org.apache.nifi.web.security.configuration.WebSecurityConfiguration: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 2: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:797) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1633) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1597) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1488) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1375) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:876) ... 44 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:797) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:236) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1350) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1187) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:408) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:906) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:784) ... 60 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:184) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:120) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1812) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1271) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:906) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:784) ... 83 common frames omitted Caused by: java.lang.IllegalStateException: Failed to communicate with Python Controller at org.apache.nifi.controller.FlowController.<init>(FlowController.java:581) at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:411) at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:83) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178) ... 95 common frames omitted Caused by: java.io.IOException: Failed to create Python Environment .\work\python\controller: process existed with code 9009 at org.apache.nifi.py4j.PythonProcess.setupEnvironment(PythonProcess.java:223) at org.apache.nifi.py4j.PythonProcess.start(PythonProcess.java:102) at org.apache.nifi.py4j.StandardPythonBridge.start(StandardPythonBridge.java:78) at org.apache.nifi.components.ClassLoaderAwarePythonBridge.start(ClassLoaderAwarePythonBridge.java:52) at org.apache.nifi.controller.FlowController.<init>(FlowController.java:579) ... 98 common frames omitted 2024-03-04 14:07:01,010 INFO [main] o.e.j.s.h.C._nifi_content_viewer No Spring WebApplicationInitializer types detected on classpath 2024-03-04 14:07:01,042 INFO [main] o.e.jetty.server.handler.ContextHandler Started oeje10w.WebAppContext@1465914{nifi-content-viewer,/nifi-content-viewer,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-content-viewer-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@2cf29dce{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-content-viewer-2.0.0-M2.war} 2024-03-04 14:07:01,045 INFO [main] o.e.j.ee10.servlet.ServletContextHandler Started oeje10w.WebAppContext@1465914{nifi-content-viewer,/nifi-content-viewer,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-content-viewer-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@2cf29dce{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-content-viewer-2.0.0-M2.war} 2024-03-04 14:07:01,280 INFO [main] o.e.j.s.h.ContextHandler._nifi_docs No Spring WebApplicationInitializer types detected on classpath 2024-03-04 14:07:01,301 INFO [main] o.e.jetty.server.handler.ContextHandler Started oeje10w.WebAppContext@7c5eb88c{nifi-docs,/nifi-docs,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-docs-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@2e3c5ecc{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-docs-2.0.0-M2.war} 2024-03-04 14:07:01,304 INFO [main] o.e.j.ee10.servlet.ServletContextHandler Started oeje10w.WebAppContext@7c5eb88c{nifi-docs,/nifi-docs,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-docs-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@2e3c5ecc{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-docs-2.0.0-M2.war} 2024-03-04 14:07:01,631 INFO [main] o.e.j.server.handler.ContextHandler._nf No Spring WebApplicationInitializer types detected on classpath 2024-03-04 14:07:01,631 INFO [main] o.e.jetty.server.handler.ContextHandler Started oeje10w.WebAppContext@46199519{nifi-web-frontend,/nf,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-frontend-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@389f4282{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-frontend-2.0.0-M2.war} 2024-03-04 14:07:01,635 INFO [main] o.e.j.ee10.servlet.ServletContextHandler Started oeje10w.WebAppContext@46199519{nifi-web-frontend,/nf,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-frontend-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@389f4282{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-frontend-2.0.0-M2.war} 2024-03-04 14:07:01,855 INFO [main] o.e.j.server.handler.ContextHandler._ No Spring WebApplicationInitializer types detected on classpath 2024-03-04 14:07:01,856 INFO [main] o.e.jetty.server.handler.ContextHandler Started oeje10w.WebAppContext@67f5066e{nifi-error,/,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-error-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@14b3976{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-error-2.0.0-M2.war} 2024-03-04 14:07:01,860 INFO [main] o.e.j.ee10.servlet.ServletContextHandler Started oeje10w.WebAppContext@67f5066e{nifi-error,/,b=file:///C:/Users/ASUS/Desktop/m/work/jetty/nifi-web-error-2.0.0-M2.war/webapp/,a=AVAILABLE,h=oeje10s.SessionHandler@14b3976{STARTED}}{.\work\nar\extensions\nifi-server-nar-2.0.0-M2.nar-unpacked\NAR-INF\bundled-dependencies\nifi-web-error-2.0.0-M2.war} 2024-03-04 14:07:01,879 INFO [main] o.eclipse.jetty.server.AbstractConnector Started ServerConnector@5632bed3{SSL, (ssl, alpn, h2, http/1.1)}{127.0.0.1:8443} 2024-03-04 14:07:01,881 INFO [main] org.eclipse.jetty.server.Server Started oejs.Server@30a9e3db{STARTING}[12.0.5,sto=0] @18427ms 2024-03-04 14:07:01,881 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0: Error creating bean with name 'securityFilterChain' defined in org.apache.nifi.web.security.configuration.WebSecurityConfiguration: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 2: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:884) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:837) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:497) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1414) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:949) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:615) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:102) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:1582) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.contextInitialized(ServletContextHandler.java:490) at org.eclipse.jetty.ee10.servlet.ServletHandler.initialize(ServletHandler.java:670) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.startContext(ServletContextHandler.java:1316) at org.eclipse.jetty.ee10.webapp.WebAppContext.startContext(WebAppContext.java:1223) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.lambda$doStart$0(ServletContextHandler.java:1042) at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1147) at org.eclipse.jetty.ee10.servlet.ServletContextHandler.doStart(ServletContextHandler.java:1039) at org.eclipse.jetty.ee10.webapp.WebAppContext.doStart(WebAppContext.java:496) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) at org.eclipse.jetty.server.Server.start(Server.java:622) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:468) at org.eclipse.jetty.server.Server.doStart(Server.java:563) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:773) at org.apache.nifi.NiFi.<init>(NiFi.java:172) at org.apache.nifi.NiFi.<init>(NiFi.java:83) at org.apache.nifi.NiFi.main(NiFi.java:332) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityFilterChain' defined in org.apache.nifi.web.security.configuration.WebSecurityConfiguration: Unsatisfied dependency expressed through method 'securityFilterChain' parameter 2: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:797) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1633) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1597) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1488) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1375) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:876) ... 44 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:797) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:236) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1350) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1187) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:408) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:906) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:784) ... 60 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController': FactoryBean threw exception on object creation at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:184) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:120) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1812) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1271) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:906) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:784) ... 83 common frames omitted Caused by: java.lang.IllegalStateException: Failed to communicate with Python Controller at org.apache.nifi.controller.FlowController.<init>(FlowController.java:581) at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:411) at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:83) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178) ... 95 common frames omitted Caused by: java.io.IOException: Failed to create Python Environment .\work\python\controller: process existed with code 9009 at org.apache.nifi.py4j.PythonProcess.setupEnvironment(PythonProcess.java:223) at org.apache.nifi.py4j.PythonProcess.start(PythonProcess.java:102) at org.apache.nifi.py4j.StandardPythonBridge.start(StandardPythonBridge.java:78) at org.apache.nifi.components.ClassLoaderAwarePythonBridge.start(ClassLoaderAwarePythonBridge.java:52) at org.apache.nifi.controller.FlowController.<init>(FlowController.java:579) ... 98 common frames omitted 2024-03-04 14:07:01,882 INFO [Thread-0] org.apache.nifi.NiFi Application Server shutdown started 2024-03-04 14:07:01,882 INFO [Thread-0] org.eclipse.jetty.server.Server Stopped oejs.Server@30a9e3db{STOPPING}[12.0.5,sto=0]
... View more
Labels:
- Labels:
-
Apache NiFi
02-22-2024
01:22 PM
Thanks à lot for the answer 🙂 It works fine!
... View more
02-21-2024
02:08 PM
Thanks for the answer. Just to conclude, I'd like to read your toughts in a few words: I'm still wondering, can these two processors be used safely in a production environment. The doc writes Experimental for the two of them. Can their behavior change over time, meaning we would have to rewrite our flows if it happens ?
... View more
02-20-2024
06:48 PM
Thanks Diana 🙂
... View more
02-20-2024
06:47 PM
Goal At my work (academic field), we are actually testing Nifi and its features to see if we'll adopt it as a workflow solution. Being able to write our own custom processors would be a good thing. Groovy processor Am I right to think you are talking about the ExecuteGroovyScript processor ? We have two worries about it. First that it would not be as efficient as a Java one. But your comment informs me it 's not the case. Second, this processor is qualified as "experimental" in the documentation. Is it a good practice to use it anyway in a production environment ? Is its definition, functionality "stable" or it could change in the future ? Conclusion I would still like to be able to create a custom processor in Java 🙂 But I'll sure try the Groovy one 🙂 Thanks a lot!
... View more
02-20-2024
11:35 AM
I'm trying to create a new Nifi custom processor. I'm following instructions given on 4 differents tutorials. I only create the structure of the processor, I don't even try to modifiy the code and I'm always having the same mvn clean install [ERROR]. Can you please help me to resolve this ? A huge thanks!!! OS : Windows 10 Home Nifi version : 2.0.0-M2 Maven : Apache Maven 3.9.6 JDK : Java version: 21.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-21 Me version : Java and Maven newbi (0.0.1) Maven is installed and I have added its bin to the path env var. Jdk in installed and I have added its bin to the path env var. JAVA_HOME env var is defined as C:\Program Files\Java\jdk-21, where my jdk is installed. The error: [ERROR] Failed to execute goal on project nifi-helloworld-nar: Could not resolve dependencies for project org.apache.nifi:nifi-helloworld-nar:nar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.nifi:nifi-standard-services-api-nar:nar:1.0-SNAPSHOT (absent): org.apache.nifi:nifi-standard-services-api-nar:nar:1.0-SNAPSHOT was not found in https://repository.apache.org/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of apache.snapshots has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :nifi-helloworld-nar What I tried: I've read a couple of tutorials (4) to create such a processor, they all tell to mvn archetype:generate cd created folder mvn clean install I've tried mvn clean install -e -X swicthes to try to see if I could understand any obvious mistake... I've only included the log without -e -X not wanting to put too much informations here... I'm probably not defining a needed environement variable or something... Commands I used to (try to) create the custom processor: mvn archetype:generate Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 2104: nifi type processor : 1 Choose org.apache.nifi:nifi-processor-bundle-archetype version: 67: 67 = 2.0.0-M2 Define value for property 'artifactBaseName': helloworld Define value for property 'groupId': org.apache.nifi Define value for property 'artifactId': nifi-helloworld-bundle Define value for property 'version' 1.0-SNAPSHOT: : Define value for property 'package' org.apache.nifi.processors.helloworld: : Confirm properties configuration: artifactBaseName: helloworld nifiVersion: 2.0.0-M2 groupId: org.apache.nifi artifactId: nifi-helloworld-bundle version: 1.0-SNAPSHOT package: org.apache.nifi.processors.helloworld Y: : Y cd nifi-helloworld-bundle mvn clean install The log of these commands: C:\Users\ASUS\Desktop\nifi-custom-processor>mvn archetype:generate [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] >>> archetype:3.2.1:generate (default-cli) > generate-sources @ standalone-pom >>> [INFO] [INFO] <<< archetype:3.2.1:generate (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO] [INFO] --- archetype:3.2.1:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: remote -> am.ik.archetype:elm-spring-boot-blank-archetype (Blank multi project for Spring Boot + Elm) 2: remote -> am.ik.archetype:graalvm-blank-archetype (Blank project for GraalVM) 3: remote -> am.ik.archetype:graalvm-springmvc-blank-archetype (Blank project for GraalVM + Spring MVC) . . . 3356: remote -> za.co.absa.hyperdrive:component-archetype_2.11 (-) 3357: remote -> za.co.absa.hyperdrive:component-archetype_2.12 (-) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 2104: nifi Choose archetype: 1: remote -> org.apache.nifi:nifi-processor-bundle-archetype (-) 2: remote -> org.apache.nifi:nifi-service-bundle-archetype (-) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1 Choose org.apache.nifi:nifi-processor-bundle-archetype version: 1: 0.0.2-incubating 2: 0.1.0-incubating 3: 0.2.0-incubating . . . 64: 1.24.0 65: 1.25.0 66: 2.0.0-M1 67: 2.0.0-M2 Choose a number: 67: Define value for property 'artifactBaseName': helloworld [INFO] Using property: nifiVersion = 2.0.0-M2 Define value for property 'groupId': org.apache.nifi Define value for property 'artifactId': nifi-helloworld-bundle Define value for property 'version' 1.0-SNAPSHOT: : Define value for property 'package' org.apache.nifi.processors.helloworld: : Confirm properties configuration: artifactBaseName: helloworld nifiVersion: 2.0.0-M2 groupId: org.apache.nifi artifactId: nifi-helloworld-bundle version: 1.0-SNAPSHOT package: org.apache.nifi.processors.helloworld Y: : Y [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Archetype: nifi-processor-bundle-archetype:2.0.0-M2 [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: org.apache.nifi [INFO] Parameter: artifactId, Value: nifi-helloworld-bundle [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: package, Value: org.apache.nifi.processors.helloworld [INFO] Parameter: packageInPathFormat, Value: org/apache/nifi/processors/helloworld [INFO] Parameter: package, Value: org.apache.nifi.processors.helloworld [INFO] Parameter: artifactBaseName, Value: helloworld [INFO] Parameter: groupId, Value: org.apache.nifi [INFO] Parameter: artifactId, Value: nifi-helloworld-bundle [INFO] Parameter: nifiVersion, Value: 2.0.0-M2 [INFO] Parameter: version, Value: 1.0-SNAPSHOT [WARNING] Don't override file C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\nifi-helloworld-processors [WARNING] Don't override file C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\nifi-helloworld-processors\src\main\java\org\apache\nifi\processors\helloworld [WARNING] Don't override file C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\nifi-helloworld-processors\src\test\java\org\apache\nifi\processors\helloworld [WARNING] Don't override file C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\nifi-helloworld-nar [INFO] Project created from Archetype in dir: C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:20 min [INFO] Finished at: 2024-02-20T11:08:03-05:00 [INFO] ------------------------------------------------------------------------ C:\Users\ASUS\Desktop\nifi-custom-processor>dir 2024-02-20 11:08 AM <DIR> . 2024-02-20 11:08 AM <DIR> .. 2024-02-20 11:08 AM <DIR> nifi-helloworld-bundle C:\Users\ASUS\Desktop\nifi-custom-processor>cd nifi-helloworld-bundle C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle>mvn clean install [INFO] Scanning for projects... [INFO] Inspecting build with total of 3 modules... [INFO] Installing Nexus Staging features: [INFO] ... total of 3 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] nifi-helloworld-bundle [pom] [INFO] nifi-helloworld-processors [jar] [INFO] nifi-helloworld-nar [nar] [INFO] [INFO] ---------------< org.apache.nifi:nifi-helloworld-bundle >--------------- [INFO] Building nifi-helloworld-bundle 1.0-SNAPSHOT [1/3] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- clean:3.3.2:clean (default-clean) @ nifi-helloworld-bundle --- [INFO] [INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ nifi-helloworld-bundle --- [INFO] Rule 0: org.apache.maven.enforcer.rules.BanDuplicatePomDependencyVersions passed [INFO] Rule 1: org.apache.maven.enforcer.rules.RequireSameVersions passed [INFO] Rule 2: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed [INFO] Rule 3: org.apache.maven.enforcer.rules.dependency.RequireReleaseDeps passed [INFO] Rule 4: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ nifi-helloworld-bundle --- [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed [INFO] [INFO] --- buildnumber:3.2.0:create (default) @ nifi-helloworld-bundle --- [INFO] [INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ nifi-helloworld-bundle --- [INFO] Preparing remote bundle org.apache.apache.resources:apache-jar-resource-bundle:1.5 [INFO] Copying 3 resources from 1 bundle. [INFO] [INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ nifi-helloworld-bundle --- [INFO] No site descriptor found: nothing to attach. [INFO] [INFO] --- install:3.1.1:install (default-install) @ nifi-helloworld-bundle --- [INFO] Installing C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\pom.xml to C:\Users\ASUS\.m2\repository\org\apache\nifi\nifi-helloworld-bundle\1.0-SNAPSHOT\nifi-helloworld-bundle-1.0-SNAPSHOT.pom [INFO] [INFO] -------------< org.apache.nifi:nifi-helloworld-processors >------------- [INFO] Building nifi-helloworld-processors 1.0-SNAPSHOT [2/3] [INFO] from nifi-helloworld-processors\pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.3.2:clean (default-clean) @ nifi-helloworld-processors --- [INFO] [INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ nifi-helloworld-processors --- [INFO] Rule 0: org.apache.maven.enforcer.rules.BanDuplicatePomDependencyVersions passed [INFO] Rule 1: org.apache.maven.enforcer.rules.RequireSameVersions passed [INFO] Rule 3: org.apache.maven.enforcer.rules.dependency.RequireReleaseDeps passed [INFO] Rule 4: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed [INFO] [INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ nifi-helloworld-processors --- [INFO] [INFO] --- buildnumber:3.2.0:create (default) @ nifi-helloworld-processors --- [INFO] [INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ nifi-helloworld-processors --- [INFO] Preparing remote bundle org.apache.apache.resources:apache-jar-resource-bundle:1.5 [INFO] Copying 3 resources from 1 bundle. [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ nifi-helloworld-processors --- [INFO] Copying 1 resource from src\main\resources to target\classes [INFO] Copying 3 resources from target\maven-shared-archive-resources to target\classes [INFO] [INFO] --- compiler:3.11.0:compile (default-compile) @ nifi-helloworld-processors --- [INFO] Changes detected - recompiling the module! :source [INFO] Compiling 1 source file with javac [forked debug deprecation release 21] to target\classes [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ nifi-helloworld-processors --- [INFO] skip non existing resourceDirectory C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\nifi-helloworld-processors\src\test\resources [INFO] Copying 3 resources from target\maven-shared-archive-resources to target\test-classes [INFO] [INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ nifi-helloworld-processors --- [INFO] Changes detected - recompiling the module! :dependency [INFO] Compiling 1 source file with javac [forked debug deprecation release 21] to target\test-classes [INFO] [INFO] --- surefire:3.1.2:test (default-test) @ nifi-helloworld-processors --- [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.apache.nifi.processors.helloworld.MyProcessorTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.139 s -- in org.apache.nifi.processors.helloworld.MyProcessorTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] --- jar:3.3.0:jar (default-jar) @ nifi-helloworld-processors --- [INFO] Building jar: C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\nifi-helloworld-processors\target\nifi-helloworld-processors-1.0-SNAPSHOT.jar [INFO] [INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ nifi-helloworld-processors --- [INFO] Skipping because packaging 'jar' is not pom. [INFO] [INFO] --- install:3.1.1:install (default-install) @ nifi-helloworld-processors --- [INFO] Installing C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\nifi-helloworld-processors\pom.xml to C:\Users\ASUS\.m2\repository\org\apache\nifi\nifi-helloworld-processors\1.0-SNAPSHOT\nifi-helloworld-processors-1.0-SNAPSHOT.pom [INFO] Installing C:\Users\ASUS\Desktop\nifi-custom-processor\nifi-helloworld-bundle\nifi-helloworld-processors\target\nifi-helloworld-processors-1.0-SNAPSHOT.jar to C:\Users\ASUS\.m2\repository\org\apache\nifi\nifi-helloworld-processors\1.0-SNAPSHOT\nifi-helloworld-processors-1.0-SNAPSHOT.jar [INFO] [INFO] ----------------< org.apache.nifi:nifi-helloworld-nar >----------------- [INFO] Building nifi-helloworld-nar 1.0-SNAPSHOT [3/3] [INFO] from nifi-helloworld-nar\pom.xml [INFO] --------------------------------[ nar ]--------------------------------- [WARNING] The POM for org.apache.nifi:nifi-standard-services-api-nar:nar:1.0-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for nifi-helloworld-bundle 1.0-SNAPSHOT: [INFO] [INFO] nifi-helloworld-bundle ............................. SUCCESS [ 1.669 s] [INFO] nifi-helloworld-processors ......................... SUCCESS [ 3.124 s] [INFO] nifi-helloworld-nar ................................ FAILURE [ 0.036 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.222 s [INFO] Finished at: 2024-02-20T11:08:59-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project nifi-helloworld-nar: Could not resolve dependencies for project org.apache.nifi:nifi-helloworld-nar:nar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.nifi:nifi-standard-services-api-nar:nar:1.0-SNAPSHOT (absent): org.apache.nifi:nifi-standard-services-api-nar:nar:1.0-SNAPSHOT was not found in https://repository.apache.org/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of apache.snapshots has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :nifi-helloworld-nar
... View more
Labels:
- Labels:
-
Apache NiFi