Created 10-20-2016 09:59 AM
Hi all,
Sorry for my question. It is an equivalent of listenSFTP & FetchSFTP with http processor ?
Created on 10-20-2016 01:05 PM - edited 08-19-2019 01:16 AM
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ListenHTTP/
that is what you want
it will get anything they send as a file
Created on 10-20-2016 12:08 PM - edited 08-19-2019 01:16 AM
Hello,
First of all, excuse me if I'm wrong, but HHTP is HTTP?
I couldn't find resources with HHTP if it's another protocol.
But for HTTP, NiFi has a lot.
If it's simple GET or POST requests, I'd recommend GetHTTP, PostHTTP, or InvokeHTTP.
Or if you need to do some processing after receiving HTTP request and before returning response, HandleHttpRequest and HandleHttpResponse can be helpful.
Thanks!
Created 10-20-2016 12:31 PM
@kkawamura : title corrected
I'm talking HTTP
My use case is external client would to send tar.gz file to my cluster hadoop.
I have a cluster nifi with 4 nodes, i want to use its to ingest data.
So I'm thinking to use listenhttp ==> (fetchhttp not exist) ==> putHDFS
thanks
Created on 10-20-2016 01:05 PM - edited 08-19-2019 01:16 AM
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ListenHTTP/
that is what you want
it will get anything they send as a file
Created on 10-20-2016 02:18 PM - edited 08-19-2019 01:16 AM
@Timothy :
I got this flow
I'm use for testing this curl
curl -i -v -F file=@/var/opt/hosting/log/flume/flume-a1.log http://nifi011:10000/contentListener
RouteOnAttribute has properties (abc ==> ${filename:contains('flume')}
Why flume log not send tu HDFS ?