Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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


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.


Rangareddy Y

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.