<?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 Multiple Values for Nifi.Remote.Input.Socket.Port in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Multiple-Values-for-Nifi-Remote-Input-Socket-Port/m-p/317956#M227371</link>
    <description>&lt;P&gt;I'm sending data from a MiNiFi agent to a NiFi Cluster. I set port 1026 for the nifi.remote.input.socket.port in the site to site properties section of the nifi.properties file in the NiFi cluster to get these data. I want to add another MiNiFi agent for sending some different data to the previously mentioned NiFi Cluster. So I want to add another port in the nifi.remote.input.socket.port for distinct receiving values in the NiFi cluster from MiNiFi agents. How can I add multiple values for nifi.remote.input.socket.port and if it is not possible, how can I handle receiving different values in the same NiFi cluster from MiNiFi agents.&lt;/P&gt;&lt;P&gt;Nifi version: 1.8.0&lt;BR /&gt;MiNiFi version: 0.5.0 java&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 07:21:11 GMT</pubDate>
    <dc:creator>Arash</dc:creator>
    <dc:date>2021-06-09T07:21:11Z</dc:date>
    <item>
      <title>Multiple Values for Nifi.Remote.Input.Socket.Port</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-Values-for-Nifi-Remote-Input-Socket-Port/m-p/317956#M227371</link>
      <description>&lt;P&gt;I'm sending data from a MiNiFi agent to a NiFi Cluster. I set port 1026 for the nifi.remote.input.socket.port in the site to site properties section of the nifi.properties file in the NiFi cluster to get these data. I want to add another MiNiFi agent for sending some different data to the previously mentioned NiFi Cluster. So I want to add another port in the nifi.remote.input.socket.port for distinct receiving values in the NiFi cluster from MiNiFi agents. How can I add multiple values for nifi.remote.input.socket.port and if it is not possible, how can I handle receiving different values in the same NiFi cluster from MiNiFi agents.&lt;/P&gt;&lt;P&gt;Nifi version: 1.8.0&lt;BR /&gt;MiNiFi version: 0.5.0 java&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 07:21:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-Values-for-Nifi-Remote-Input-Socket-Port/m-p/317956#M227371</guid>
      <dc:creator>Arash</dc:creator>
      <dc:date>2021-06-09T07:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Values for Nifi.Remote.Input.Socket.Port</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-Values-for-Nifi-Remote-Input-Socket-Port/m-p/318678#M227511</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84887"&gt;@Arash&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The "&lt;SPAN&gt;nifi.remote.input.socket.port" property is used so that the receiving NiFi can support the RAW transport protocol.&amp;nbsp; This port has nothing to do with where within your dataflows the transferred data is being ingested.&lt;BR /&gt;&lt;BR /&gt;The Remote Process Group (RPG) that exists within your MiNiFi dataflow acts as a client.&amp;nbsp; It will execute a background thread every 30 seconds that connects to the target NiFi URL configured in the RPG that fetches NiFi Site-To-Site (S2S) details from the target NiFi.&amp;nbsp; These S2S details include details about the target.&amp;nbsp; This information includes but is not limited to the following:&lt;BR /&gt;1. Hostnames of all nodes in target NiFi cluster&lt;BR /&gt;2. Remote (RAW) input socket port if configured&lt;BR /&gt;3. FlowFile load on each cluster node&lt;BR /&gt;4. Remote input and output ports this client is authorized access to.&lt;BR /&gt;&lt;BR /&gt;There is no option to configure multiple remote input socket port values.&amp;nbsp; RPG would not know how to use them even if there was.&amp;nbsp; In your case each unique MiNiFi should have be pushing to a different Remote input port on the canvas instead of all of them sending to same input port.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1623763446321.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31531i0D3E1F9238621C4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1623763446321.png" alt="MattWho_0-1623763446321.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Second option is to use a RouteOnAttribute processor after your single Remote input port that routes data based on the "s2s.host" attribute value set on the received FlowFiles.&amp;nbsp; This attribute is set by the sending RPG on each MiNiFi to the hostname of that MiNiFi.&amp;nbsp; You could of course also set a unique attribute on each FlowFile via na UpdateAttribute processor on each MiNiFi also before sending through&amp;nbsp;the RPG.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;If you found this addressed your query, please take a moment to login and click "Accept" on solutions that helped you.&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 13:29:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-Values-for-Nifi-Remote-Input-Socket-Port/m-p/318678#M227511</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-06-15T13:29:39Z</dc:date>
    </item>
  </channel>
</rss>

