Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

nifi: copy file from one source (Linux Remote source) to other(nifi and hadoop installed) server with use of scp command or alternative way (not site-to-site protocol )

avatar

Hey , I want to copy file from Linux Remote machine to hadoop with use of scp command

also i want to pass parameters (server ip , path etc) dynamically

Ex:

scp [options] username1@source_host:directory1/filename1 username2@destination_host:directory2/filename2

Here I will pass all the parameter pass dynamically every time through nifi API

how it is possible ...whether we need to create own processor ?

Thanks ,

Paresh

1 ACCEPTED SOLUTION

avatar
@Paresh Baldaniya

There are already processors designed to make systems calls.

ExecuteProcess -- Runs an operating system command specified by the user and writes the output of that command to a FlowFile.

ExecuteStreamCommand -- Executes an external command on the contents of a flow file, and creates a new flow file with the results of the command.

ExecuteScript -- Executes a script given the flow file and a process session.

I would think the ExecuteProcess would be the best for your use case.

View solution in original post

1 REPLY 1

avatar
@Paresh Baldaniya

There are already processors designed to make systems calls.

ExecuteProcess -- Runs an operating system command specified by the user and writes the output of that command to a FlowFile.

ExecuteStreamCommand -- Executes an external command on the contents of a flow file, and creates a new flow file with the results of the command.

ExecuteScript -- Executes a script given the flow file and a process session.

I would think the ExecuteProcess would be the best for your use case.