Giter Site home page Giter Site logo

flume-ftp-source's Introduction

Flume-ftp-source

A network server on port 21 (FTP) will be source of events for Apache-flume. Files in main directory's server will be discovered and proccessed. The source is implemented as pollable source in terms of Flume, as the polling time is configurable in the main configuration of flume's file. In main flume's agent configuration file must be specified if security for FTP is required. There are two kind of protocol security supported by the plugin:

  • FTP: File Transfer Protocol, normal plain text (insecure) but available for common use. Port 21.
  • FTPS: File Transfer Protocol that uses AUTH SSL o TLS cryptographic protocols. Port 21.
  • SFTP: File Transfer Protocol that uses SSH V3, via a single channel (layer transport) and sending/receiving in binary. Port 22.(Recommended).

Files proccesed will be "saved" in an external file.

Requirements

  • Apache-flume mayor to 1.4.0.
  • commons-net-3.3.jar (ftpClient and ftpsClient)
  • jsch-0.1.52.jar (channelSftp)

Parameters for flume

###### Example configuration for FTP source

  agent.sources.ftp1.type = org.apache.flume.source.FTPSource 
  agent.sources.ftp1.name.server = 127.0.0.1
  agent.sources.ftp1.user = username
  agent.sources.ftp1.password = password
  agent.sources.ftp1.port = 21
  agent.sources.ftp1.folder = /var/flume
  agent.sources.ftp1.file.name = status-ftp1-file.ser
  agent.sources.ftp1.security.enabled = false
  agent.sources.ftp1.security.cipher = TLS
  agent.sources.ftp1.security.certificate.enabled = false 

###### Example configuration for FTPS source

  agent.sources.ftp1.type = org.apache.flume.source.FTPSource (same source as FTP) 
  agent.sources.ftp1.name.server = 127.0.0.1
  agent.sources.ftp1.user = username
  agent.sources.ftp1.password = password
  agent.sources.ftp1.port = 21
  agent.sources.ftp1.folder = /var/flume
  agent.sources.ftp1.file.name = status-ftp1-file.ser
  agent.sources.ftp1.security.enabled = true 
  agent.sources.ftp1.security.cipher = TLS
  agent.sources.ftp1.security.certificate.enabled = (false | true)  (if false the plugin will accept any 
  certificate sent by the server, validated or not).

###### Example configuration for SFTP source

  agent.sources.sftp1.type = org.apache.flume.source.SFTPSource (exclusive source for SFTP) 
  agent.sources.sftp1.name.server = 127.0.0.1
  agent.sources.sftp1.user = username
  agent.sources.sftp1.password = password
  agent.sources.sftp1.port = 22
  agent.sources.sftp1.folder = /var/flume
  agent.sources.sftp1.file.name = status-sftp1-file.ser
  agent.sources.sftp1.knownHosts = /home/username/.ssh/known_hosts
Discover delay, each configured milisecond directory will be explored
agent.sources.fpt1.run.discover.delay=10000

License

Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0

Wiki

https://github.com/keedio/flume-ftp-source/wiki/flume-ftp-source,-especificaciones-generales-y-pruebas-iniciales

-- Luis Lázaro [email protected]

flume-ftp-source's People

Contributors

lazaromedina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.