Austin,

Sorry I lost track of this thread. If you have a command-line FTPS
client, then you can configure ExecuteProcess or ExecuteStreamCommand
to run the same command you would from a shell. For the scripted
solution, you'd need to be comfortable with a supported scripting
language such as Groovy, Javascript, Jython, JRuby, Lua, or Clojure.
Then in NiFi 1.4.0 you can import FTPSClient and borrow some code from
FTPTransfer, replacing [1] with FTPSClient rather than FTPClient. I
think you'd also need to get at an SSLContext controller service, I
have a blog post [2] that demonstrates how to get a controller service
with Groovy.

That being said, the scripting solution is probably overly complicated
if you are familiar with Java, probably easier to just implement
NIFI-2278 :)

Regards,
Matt

[1] 
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/FTPTransfer.java#L207
[2] http://funnifi.blogspot.com/2016/04/sql-in-nifi-with-executescript.html

On Thu, Oct 5, 2017 at 3:29 PM, Austin Duncan <[email protected]> wrote:
> I haven't done anything like this before? how do I implement this in nifi
>
> On Thu, Oct 5, 2017 at 3:08 PM, Matt Burgess <[email protected]> wrote:
>>
>> Austin,
>>
>> There is an open Jira (NIFI-2278 [1]) to add this support to the
>> existing processor(s), I believe if Apache Commons Net is used for the
>> clients then we would just need to create an FTPSClient [2] instead of
>> an FTPClient. In order to support prototyping such things, Apache
>> Commons Net was added to the scripting NAR in NiFi 1.4.0 (under
>> NIFI-4334 [3]) for just such a purpose (until NIFI-2278 is
>> implemented), so ExecuteScript or InvokeScriptedProcessor is an
>> option.  Also if you have a command-line client that works, you could
>> try ExecuteProcess or ExecuteStreamCommand.
>>
>> Regards,
>> Matt
>>
>> [1] https://issues.apache.org/jira/browse/NIFI-2278
>> [2]
>> https://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPSClient.html
>> [3] https://issues.apache.org/jira/browse/NIFI-4334
>>
>> On Thu, Oct 5, 2017 at 2:27 PM, Austin Duncan <[email protected]>
>> wrote:
>> > Has anyone successfully implemented a flow that can perform an ftps (ftp
>> > with tls/ssl) there is not a standard option for this. We can
>> > successfully
>> > wget the data but are having trouble ftping in general. any advice?
>> >
>> > --
>> > Austin Duncan
>> > Researcher
>> >
>> > PYA Analytics
>> > 2220 Sutherland Avenue
>> > Knoxville, TN 37919
>> > 865-684-2828
>
>
>
>
> --
> Austin Duncan
> Researcher
>
> PYA Analytics
> 2220 Sutherland Avenue
> Knoxville, TN 37919
> 865-684-2828

Reply via email to