<?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: Building Apache Nifi Python Processors in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Building-Apache-Nifi-Python-Processors/m-p/390981#M247420</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Can you post your python processor code? Also what version of Nifi , Java , Python are you you using?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 17:41:00 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2024-07-25T17:41:00Z</dc:date>
    <item>
      <title>Building Apache Nifi Python Processors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Building-Apache-Nifi-Python-Processors/m-p/390919#M247394</link>
      <description>&lt;P&gt;&lt;STRONG&gt;ERROR&lt;/STRONG&gt; [python-log-97916] py4j.java_gateway There was an exception while executing the Python Proxy on the Python Side.&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt; File "C:\Nifi\nifi-2.0.0-M4\python\framework\py4j\java_gateway.py", line 2466, in _call_proxy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; return_value = getattr(self.pool[obj_id], method)(*params)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;/P&gt;&lt;P&gt;&amp;nbsp; F&lt;STRONG&gt;ile "C:\Nifi\nifi-2.0.0-M4\.\python\framework\Controller.py", line 75, in createProcessor&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; processor = processorClass(jvm=self.gateway.jvm)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;/P&gt;&lt;P&gt;TypeError: WriteHelloWorld.__init__() got an unexpected keyword argument 'jvm'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2024-07-19&lt;/SPAN&gt; &lt;SPAN&gt;11:08:55,680&lt;/SPAN&gt; &lt;STRONG&gt;ERROR&lt;/STRONG&gt; [Initialize Python Processor ca359d33-0190-1000-2b29-ff0f5ad6577a (WriteHelloWorld)] o.a.n.py4j.StandardPythonProcessorBridge Failed to load code for Python Processor ca359d33-0190-1000-2b29-ff0f5ad6577a (WriteHelloWorld). Will try again in 64000 millis&lt;/P&gt;&lt;P&gt;py4j.Py4JException: An exception was raised by the Python Proxy. Return Message: Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Nifi\nifi-2.0.0-M4\python\framework\py4j\java_gateway.py", line 2466, in _call_proxy&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; return_value = getattr(self.pool[obj_id], method)(*params)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Nifi\nifi-2.0.0-M4\.\python\framework\Controller.py", line 75, in createProcessor&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; processor = processorClass(jvm=self.gateway.jvm)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;/P&gt;&lt;P&gt;TypeError: WriteHelloWorld.__init__() got an unexpected keyword argument 'jvm'&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 09:35:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Building-Apache-Nifi-Python-Processors/m-p/390919#M247394</guid>
      <dc:creator>anasb</dc:creator>
      <dc:date>2024-07-24T09:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Building Apache Nifi Python Processors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Building-Apache-Nifi-Python-Processors/m-p/390981#M247420</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Can you post your python processor code? Also what version of Nifi , Java , Python are you you using?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 17:41:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Building-Apache-Nifi-Python-Processors/m-p/390981#M247420</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-07-25T17:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Building Apache Nifi Python Processors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Building-Apache-Nifi-Python-Processors/m-p/391058#M247453</link>
      <description>&lt;P&gt;i used this code for testing&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;from nifiapi.flowfiletransform import FlowFileTransform, FlowFileTransformResult

class WriteHelloWorld(FlowFileTransform):
    class Java:
        implements = ['org.apache.nifi.python.processor.FlowFileTransform']
    class ProcessorDetails:
        version = '0.0.1-SNAPSHOT'

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

    def transform(self, context, flowfile):
        return FlowFileTransformResult(relationship = "success", contents = "Hello World", attributes = {"greeting", "hello"})&lt;/PRE&gt;&lt;P&gt;python 3.11 , java 21 and Apache nifi 2.0.0 M4&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 12:30:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Building-Apache-Nifi-Python-Processors/m-p/391058#M247453</guid>
      <dc:creator>anasb</dc:creator>
      <dc:date>2024-07-27T12:30:05Z</dc:date>
    </item>
  </channel>
</rss>

