Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to read files remote server directory files thru groovy script in NiFi

avatar
Explorer

Hi Team,


I just started working on the apache execute script processor. please help me on this.

 

I am getting issues to read files from remote directory of multiple connections and pass all files to next processor. Here I  can not use list processor since it is asking static host and port.. so I want to write groovy script to connect remote server and read all files and hand over them to next processor. My seniors suggested to write groovy script to complete this activity.
I need help on how to connect remote server and read all files and how to add all files to flow file and how to hand over it to next processor ?

Input parameters are
1) username 2) password 3) host  4) port 5) directory path

 

Can you guys suggest me how to get this.

 

Thanks,
Rangareddy Y

0 REPLIES 0