Skip to main content
hackerway
Silver ⭐️⭐️
March 24, 2023
Solved

Apache Nifi : ListSFTP Processor Failed to properly initialize Processor

Hi, All!

I have a problem with NIFI ListSFTP processor. After started processor errored with

 

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!

 

ListSFTP processor Version 1.12.0 and the Properties as follows:

hackerway_2-1679645790435.pnghackerway_3-1679645813496.png

hackerway_4-1679645837656.png

Error screenshot from UI:

hackerway_0-1679645637829.pnghackerway_1-1679645679858.png

cotopaul
cotopaulAnswer
Platinum ⭐️
March 24, 2023

hi @hackerway,

It seems that you have the same exact issue as posted here: https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284517

I had the same issue and what @MattWho said in that post helped me solve my issue 🙂

Have a look to the solution and try to see if it will solve your issue.


In addition to the above link, you can also have a look on: https://stackoverflow.com/questions/59826510/a-hostprovider-may-not-be-empty-after-upgrading-to-nifi-1-10

4 replies

cotopaul
cotopaulAnswer
Platinum ⭐️
March 24, 2023

hi @hackerway,

It seems that you have the same exact issue as posted here: https://community.cloudera.com/t5/Support-Questions/NiFi-ListSTFP-hostprovider-may-not-be-empty/m-p/284517

I had the same issue and what @MattWho said in that post helped me solve my issue 🙂

Have a look to the solution and try to see if it will solve your issue.


In addition to the above link, you can also have a look on: https://stackoverflow.com/questions/59826510/a-hostprovider-may-not-be-empty-after-upgrading-to-nifi-1-10

Translate
hackerway
hackerwayAuthor
Silver ⭐️⭐️
March 24, 2023

Hi @cotopaul  Thanks for the response. As you rightly pointed out, it's the same issue. However, I'm still facing the problem. I have configured the 'zookeeper.properties' as below: 

hackerway_0-1679655935811.png

 

 

Translate
cotopaul
Platinum ⭐️
March 24, 2023

@hackerwayhow does your state-management.xml look like? Are you using the embedded zookeeper by any chance?

Translate
hackerway
hackerwayAuthor
Silver ⭐️⭐️
March 25, 2023

Thanks @cotopaul state-management.xml  Connect String was missing , Yes 

Translate