Joey Frazee did some work on this [1], but I think he was still trying to get a test setup. If you have something that you can test against, it would be much appreciated! I built a nifi-standard-nar-1.4.0 with his FTPS changes and put it on DropBox [2]. You can save off the existing NAR and replace with this one, then restart NiFi and you should see the SSLContext property added to the FTP processor(s). If you get a chance to test with it, please let us know if it works, and if so we can get it reviewed and merged :)
Regards, Matt [1] https://github.com/jfrazee/nifi/commit/7c367bab810c83844ff3c5b48a03b59379bb9088 [2] https://www.dropbox.com/s/dols16x44bw3eue/nifi-standard-nar-1.4.0.nar?dl=0 On Wed, Oct 11, 2017 at 1:14 PM, Austin Duncan <[email protected]> wrote: > Yeah it would be great if NIFI-2278 was implemented. Any idea on when that > will be rolled out? > > On Wed, Oct 11, 2017 at 1:08 PM, Matt Burgess <[email protected]> wrote: >> >> 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 > > > > > -- > Austin Duncan > Researcher > > PYA Analytics > 2220 Sutherland Avenue > Knoxville, TN 37919 > 865-684-2828
