Github user eorgad commented on the pull request:
https://github.com/apache/nifi/pull/453#issuecomment-220467272
Taking a dipper look at this, the the ScpTo.java code uses the following:
...
// exec 'scp -t rfile' remotely
String command="scp " + (ptimestamp ? "-p" :"") +" -t "+rfile;
Channel channel=session.openChannel("exec");
((ChannelExec)channel).setCommand(command);
// get I/O streams for remote scp
OutputStream out=channel.getOutputStream();
InputStream in=channel.getInputStream();
...
So implementing this would probably be the equivalent of invoking an
ExecuteProcess
and providing it with the parameters for scp command. So the same
question @mosermw
raised where is the value in those processors if I would end up with the
same implementation
as ExecuteProcess. In both cases using the native binaries for scp.
Also as I am new to contributing to Nifi looks like the verification
checks failed, when I look
at the build it succeeded. Am I doing something wrong procedurally or did
it time out before the
build completed?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---