<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Apache NiFi custom processor runtime environment error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/390944#M247407</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112959"&gt;@cyrine&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105558"&gt;@joseomjr&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 18:38:16 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2024-07-24T18:38:16Z</dc:date>
    <item>
      <title>Apache NiFi custom processor runtime environment error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/390917#M247392</link>
      <description>&lt;P&gt;I am using NiFi 2.0 that supports python scripts directly from a working directory, after I add my custom processor to the canvas, an error "Processor invalid because initializing runtime environment for the processor" is indicated in each custom processor. I have already installed Java JDK 21, python 3.11 and all the requirements specified in the official documentation. How can I resolve this?&lt;/P&gt;&lt;P&gt;I have already installed Java JDK 21, python 3.11 and all the requirements specified in the official documentation.I changed the python extension parameters in the nifi.properties file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is what appears in the app-log:&lt;BR /&gt;2024-07-24 10:31:06,608 ERROR [Initialize CreateFlowFile] org.apache.nifi.NiFi An Unknown Error Occurred in Thread VirtualThread[#138,Initialize CreateFlowFile]/runnable@ForkJoinPool-1-worker-2&lt;BR /&gt;java.lang.RuntimeException: Failed to launch Process for Python Processor [CreateFlowFile] Version [0.0.1-SNAPSHOT]&lt;BR /&gt;at org.apache.nifi.py4j.StandardPythonBridge.getProcessForNextComponent(StandardPythonBridge.java:267)&lt;BR /&gt;at org.apache.nifi.py4j.StandardPythonBridge.createProcessorBridge(StandardPythonBridge.java:125)&lt;BR /&gt;at org.apache.nifi.py4j.StandardPythonBridge.lambda$createProcessor$7(StandardPythonBridge.java:142)&lt;BR /&gt;at org.apache.nifi.python.processor.PythonProcessorProxy.lambda$new$0(PythonProcessorProxy.java:78)&lt;BR /&gt;at java.base/java.lang.VirtualThread.run(VirtualThread.java:309)&lt;BR /&gt;Caused by: java.io.IOException: Failed to create Python Environment ./work/python/extensions/CreateFlowFile/0.0.1-SNAPSHOT: process existed with code 1&lt;BR /&gt;at org.apache.nifi.py4j.PythonProcess.setupEnvironment(PythonProcess.java:359)&lt;BR /&gt;at org.apache.nifi.py4j.PythonProcess.start(PythonProcess.java:129)&lt;BR /&gt;at org.apache.nifi.py4j.StandardPythonBridge.getProcessForNextComponent(StandardPythonBridge.java:248)&lt;BR /&gt;... 4 common frames omitted&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cyrine_0-1721813065901.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41245i2BE75BCB76CFBE4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cyrine_0-1721813065901.png" alt="cyrine_0-1721813065901.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 09:33:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/390917#M247392</guid>
      <dc:creator>cyrine</dc:creator>
      <dc:date>2024-07-24T09:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi custom processor runtime environment error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/390944#M247407</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112959"&gt;@cyrine&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105558"&gt;@joseomjr&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 18:38:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/390944#M247407</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-07-24T18:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi custom processor runtime environment error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/391640#M247708</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I have been running into similar issues in recent weeks building custom processors, I have yet to find a satisfactory solution to this issue outside of removing the processors from the python/extensions folder, restarting, and then adding them back one by one.&lt;BR /&gt;&lt;BR /&gt;Sometimes this will clear the issue, sometimes it won't.&lt;/P&gt;&lt;P&gt;Is this a known issue with Nifi 2.0, and is there any workaround or fix that the team is aware of?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 12:44:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/391640#M247708</guid>
      <dc:creator>Thressian</dc:creator>
      <dc:date>2024-08-12T12:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi custom processor runtime environment error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/391645#M247711</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To help troubleshoot :&lt;/P&gt;&lt;P&gt;1- what version of nifi 2.0 are you using exactly and what system?&lt;/P&gt;&lt;P&gt;2- Can you post the error as appears in the log?&lt;/P&gt;&lt;P&gt;3- Do you see any dependency packages under the path /work/python/extension/{processor name}/2.0.0-SNAPSHOT. If the answer is no, can you provide screenshot of what us under that folder.&lt;/P&gt;&lt;P&gt;4- Do you see any file called "env-creation-complete.txt" under the same folder above?&lt;/P&gt;&lt;P&gt;5- Are you getting any error when starting nifi after enabling the python extension by uncommenting the following line :&lt;/P&gt;&lt;P&gt;nifi.python.command=...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:06:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/391645#M247711</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-08-12T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Apache NiFi custom processor runtime environment error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/394573#M248746</link>
      <description>&lt;P&gt;i had the same issue&lt;BR /&gt;i made sudo apt install python3-venv&lt;BR /&gt;restarted apache nifi&lt;BR /&gt;and it worked&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 14:59:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-custom-processor-runtime-environment-error/m-p/394573#M248746</guid>
      <dc:creator>rubendsm</dc:creator>
      <dc:date>2024-10-04T14:59:31Z</dc:date>
    </item>
  </channel>
</rss>

