- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to read files remote server directory files thru groovy script in NiFi
- Labels:
-
Apache NiFi
Created on 06-16-2022 07:44 PM - edited 06-16-2022 09:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
