<?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: NiFi ListSTFP in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/399744#M250539</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112053"&gt;@Bern&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I suggest starting a new community question with the full error stack trace you are seeing.&amp;nbsp; Your exception seems different then the one discussed in this community question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failure is due to java.lang.IllegalArgumentException: A HostProvider may not be empty!: java.lang.IllegalArgumentException: A HostProvider may not be empty!&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You exception is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Failure is due to
org.apache.nifi.processor.exception.TerminatedTaskException:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A few observations and things you may want to provide details around in your new community post:&lt;BR /&gt;1. The version of Apache NiFi you are using was released ~6 years ago.&amp;nbsp; You should really consider upgrading to take advantage of lost of bug fixes, performance improvements, new features, and security CVEs addressed.&amp;nbsp; The latest release in the 1.x branch is 1.28 (which is final release of 1.x branch).&lt;BR /&gt;&lt;BR /&gt;2. Your screenshot shows over 250,000 queued FlowFiles (25.75 GB) and 1.373 running processors components. What do you have set as your Max Rimer Driven Tread count?&lt;BR /&gt;&lt;BR /&gt;3. Any other WARN or ERROR messages in your NiFi logs?&amp;nbsp; Any Out of Memory (OOM) reported?&lt;BR /&gt;&lt;BR /&gt;4. It does not make sense why you are load-balancing in so many connections?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 15:17:32 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-01-07T15:17:32Z</dc:date>
    <item>
      <title>NiFi ListSTFP hostprovider may not be empty</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284517#M211268</link>
      <description>&lt;P&gt;Hello. I am using nifi cluster with 3 nodes.&lt;/P&gt;
&lt;P&gt;I tried to Impala Query with query, it was success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I tried to use ListSFTP and FetchSFTP, It occurs Error.&lt;/P&gt;
&lt;P&gt;The Error was&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR [Timer-Driven Process Thread-6] o.a.nifi.processors.standard.ListSFTP ListSFTP[id=c486c6ce-016e-1000-0000-000037351532] Failed to properly initialize Processor. If still scheduled to run, NiFi will attempt to initialize and run the Processor again after the 'Administrative Yield Duration' has elapsed. Failure is due to java.lang.IllegalArgumentException: A HostProvider may not be empty!: java.lang.IllegalArgumentException: A HostProvider may not be empty!&lt;BR /&gt;java.lang.IllegalArgumentException: A HostProvider may not be empty!&lt;BR /&gt;at org.apache.zookeeper.client.StaticHostProvider.init(StaticHostProvider.java:136)&lt;BR /&gt;at org.apache.zookeeper.client.StaticHostProvider.&amp;lt;init&amp;gt;(StaticHostProvider.java:87)&lt;BR /&gt;at org.apache.zookeeper.ZooKeeper.createDefaultHostProvider(ZooKeeper.java:1312)&lt;BR /&gt;at org.apache.zookeeper.ZooKeeper.&amp;lt;init&amp;gt;(ZooKeeper.java:951)&lt;BR /&gt;at org.apache.zookeeper.ZooKeeper.&amp;lt;init&amp;gt;(ZooKeeper.java:688)&lt;BR /&gt;at org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.getZooKeeper(ZooKeeperStateProvider.java:170)&lt;BR /&gt;at org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.getState(ZooKeeperStateProvider.java:403)&lt;BR /&gt;at org.apache.nifi.controller.state.manager.StandardStateManagerProvider$1.getState(StandardStateManagerProvider.java:305)&lt;BR /&gt;at org.apache.nifi.controller.state.StandardStateManager.getState(StandardStateManager.java:63)&lt;BR /&gt;at org.apache.nifi.processor.util.list.AbstractListProcessor.updateState(AbstractListProcessor.java:298)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why this error occur&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I changed configuration "nifi.flowcontroller.autoResumeState=false", but still error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you advise for me?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 09:32:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284517#M211268</guid>
      <dc:creator>hhibigdata</dc:creator>
      <dc:date>2019-12-02T09:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi ListSTFP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284528#M211301</link>
      <description>&lt;P&gt;Thanks for you answering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a one more question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I configured 3 Nifi Cluster Clustering with 3 node And I tried to use ListSFTP Component in NiFi Cluster, error occurs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error was&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR [Timer-Driven Process Thread-6] o.a.nifi.processors.standard.ListSFTP ListSFTP[id=c486c6ce-016e-1000-0000-000037351532] Failed to properly initialize Processor.&lt;BR /&gt;If still scheduled to run, NiFi will attempt to initialize and run the Processor again after the 'Administrative Yield Duration' has elapsed.&lt;BR /&gt;Failure is due to java.lang.IllegalArgumentException: A HostProvider may not be empty!: java.lang.IllegalArgumentException: A HostProvider may not be empty!&lt;BR /&gt;java.lang.IllegalArgumentException: A HostProvider may not be empty!&lt;BR /&gt;at org.apache.zookeeper.client.StaticHostProvider.init(StaticHostProvider.java:136)&lt;BR /&gt;at org.apache.zookeeper.client.StaticHostProvider.&amp;lt;init&amp;gt;(StaticHostProvider.java:87)&lt;BR /&gt;at org.apache.zookeeper.ZooKeeper.createDefaultHostProvider(ZooKeeper.java:1312)&lt;BR /&gt;at org.apache.zookeeper.ZooKeeper.&amp;lt;init&amp;gt;(ZooKeeper.java:951)&lt;BR /&gt;at org.apache.zookeeper.ZooKeeper.&amp;lt;init&amp;gt;(ZooKeeper.java:688)&lt;BR /&gt;at org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.getZooKeeper(ZooKeeperStateProvider.java:170)&lt;BR /&gt;at org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.getState(ZooKeeperStateProvider.java:403)&lt;BR /&gt;at org.apache.nifi.controller.state.manager.StandardStateManagerProvider$1.getState(StandardStateManagerProvider.java:305)&lt;BR /&gt;at org.apache.nifi.controller.state.StandardStateManager.getState(StandardStateManager.java:63)&lt;BR /&gt;at org.apache.nifi.processor.util.list.AbstractListProcessor.updateState(AbstractListProcessor.java:298)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know how to fix it.&lt;/P&gt;
&lt;P&gt;In addition to your acticle, you said ListSFTP &amp;amp; ListHDFS were non-cluster friendly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, When I want to use ListSFTP in NiFi Cluster, I have to configure one more NiFi Cluster(Standalone)? My NiFi Cluster is 4(3 clustering, 1 standalone)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;plz help me..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 21:45:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284528#M211301</guid>
      <dc:creator>hhibigdata</dc:creator>
      <dc:date>2019-12-02T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi ListSTFP hostprovider may not be empty</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284569#M211300</link>
      <description>&lt;P&gt;Can you show a screen shot of the processor configuration?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 21:27:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284569#M211300</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2019-12-02T21:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi ListSTFP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284669#M211366</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/27377"&gt;@hhibigdata&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not clear on your setup based on your comments:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;I have to configure one more NiFi Cluster(Standalone)? My NiFi Cluster is 4(3 clustering, 1 standalone)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---&amp;nbsp; The List based processor are not cluster friendly because the non NiFi protocols they are built for are not cluster friendly.&amp;nbsp; All this means is that these processors must be configured in your NiFi cluster with an "Execution" of "Primary Node" so that it will only ever be running on one node at a time.&amp;nbsp; You should not have two different NiFi installs.&amp;nbsp; In between the ListSFTP and FetchSFTP processors you should be redistributing the listed files via the load balanced strategy options on the connection.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--- NiFi clusters require zookeeper and zookeeper requires quorum meaning you should&amp;nbsp;have an odd number of ZK nodes (3 or 5 recommended).&amp;nbsp; This same ZK will also be used to store cluster state for thes non cluster friendly processors, so that when a primary node changes nodes, the new node will pull last known state from ZK so that the list based processors continue to list from where previously elected primary node left off.&lt;BR /&gt;&lt;BR /&gt;So two things i suggest you check on:&lt;BR /&gt;1. That the zookeeper "Connect String" is correct in your state-management.xml "zk-provider". It should&amp;nbsp;be a comma separated&amp;nbsp;list of 3 to 5 ZK &amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;&lt;BR /&gt;2. That the "nifi.zookeeper.connect.string=" has been properly setup in the nifi.properties file. It should&amp;nbsp;be a comma separated&amp;nbsp;list of 3 to 5 ZK &amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*** Generally both use the same ZK connect string and same ZK root node.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 20:06:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284669#M211366</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-12-03T20:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi ListSTFP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/399517#M250503</link>
      <description>&lt;P&gt;This solution is not concrete enough, I made the suggested changes for this error "Failed to properly initialize Processor. If still scheduled to run, NiFi will attempt to initialize and run the&lt;BR /&gt;Processor again after the 'Administrative Yield Duration' has elapsed. Failure is due to&lt;BR /&gt;org.apache.nifi.processor.exception.TerminatedTaskException: org.apache.nifi.processor.exception.TerminatedTaskException", but I still have the problem, modify the state-management.xml, as follows, &amp;lt;cluster-provider&amp;gt;&lt;BR /&gt;&amp;lt;id&amp;gt;zk-provider&amp;lt;/id&amp;gt;&lt;BR /&gt;&amp;lt;class&amp;gt;org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;property name="Connect String"&amp;gt;node-1:2181,node-2:2181,node-3:2181&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="Root Node"&amp;gt;/nifi&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="Session Timeout"&amp;gt;10 seconds &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="Access Control"&amp;gt;Open&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;and the zookeeper properties with the following:&lt;BR /&gt;server.1=node-1:2888:3888;2181&lt;BR /&gt;server.2=node-2:2888:3888 ;2181&lt;BR /&gt;server.3=node-3:2888:3888;2181&lt;/P&gt;&lt;P&gt;I restarted zoo and nifi and the problem is not solved. What's more, I have a slow process to execute. When I execute the flow, the processors take a long time, more than 10 minutes to start. and does not run the generateflowfile processor.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error-nifi.JPG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/43309i82708ED05DC23A53/image-size/large?v=v2&amp;amp;px=999" role="button" title="error-nifi.JPG" alt="error-nifi.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The processor previously when the cluster worked well the EvaluateJsonPath processor executed in milliseconds now it gets stuck and takes a long time to parse the json where there are some periods of data from to, so that the process works segmented with data, after the select the processors are configured as multitasking, I have nifi 1.11.4 and separately zookeeper 3.6.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 21:59:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/399517#M250503</guid>
      <dc:creator>Bern</dc:creator>
      <dc:date>2025-01-02T21:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi ListSTFP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/399744#M250539</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112053"&gt;@Bern&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I suggest starting a new community question with the full error stack trace you are seeing.&amp;nbsp; Your exception seems different then the one discussed in this community question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failure is due to java.lang.IllegalArgumentException: A HostProvider may not be empty!: java.lang.IllegalArgumentException: A HostProvider may not be empty!&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You exception is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Failure is due to
org.apache.nifi.processor.exception.TerminatedTaskException:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A few observations and things you may want to provide details around in your new community post:&lt;BR /&gt;1. The version of Apache NiFi you are using was released ~6 years ago.&amp;nbsp; You should really consider upgrading to take advantage of lost of bug fixes, performance improvements, new features, and security CVEs addressed.&amp;nbsp; The latest release in the 1.x branch is 1.28 (which is final release of 1.x branch).&lt;BR /&gt;&lt;BR /&gt;2. Your screenshot shows over 250,000 queued FlowFiles (25.75 GB) and 1.373 running processors components. What do you have set as your Max Rimer Driven Tread count?&lt;BR /&gt;&lt;BR /&gt;3. Any other WARN or ERROR messages in your NiFi logs?&amp;nbsp; Any Out of Memory (OOM) reported?&lt;BR /&gt;&lt;BR /&gt;4. It does not make sense why you are load-balancing in so many connections?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 15:17:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/399744#M250539</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-01-07T15:17:32Z</dc:date>
    </item>
  </channel>
</rss>

