This is a Docker image for Flume.
Apache Flume is a distributed, reliable, and available service for efficiently collecting, aggregating, and moving large amounts of log data. It has a simple and flexible architecture based on streaming data flows. It is robust and fault tolerant with tunable reliability mechanisms and many failover and recovery mechanisms. The system is centrally managed and allows for intelligent dynamic management. It uses a simple extensible data model that allows for online analytic application.
Learn more about Flume on the Flume Documentation.
$ git clone git@github.com:mosuka/docker-flume.git ${HOME}/git/docker-flume
$ docker build -t mosuka/docker-flume:latest ${HOME}/git/docker-flume
$ docker pull mosuka/docker-flume:latest
$ docker run -d --name flume mosuka/docker-flume:latest
b1e8a875d7ed860cd548305a040ec12e99eb7cb5c92b6b1865cbaf592aa0927e
$ FLUME_CONTAINER_IP=$(docker inspect -f '{{ .NetworkSettings.IPAddress }}' flume)
$ echo ${FLUME_CONTAINER_IP}
172.17.0.2
$ docker stop flume; docker rm flume
flume
flume
Run ZooKeeper. See following URL:
- Source: https://github.com/mosuka/docker-zookeeper
- Docker Image: https://hub.docker.com/r/mosuka/docker-zookeeper/
$ docker run -d --name flume -e FLUME_AGENT_ZK_CONN_STRING=${ZOOKEEPER_CONTAINER_IP}:2181 -e FLUME_AGENT_ZK_BASE_PATH=/flume mosuka/docker-flume:latest
b1e8a875d7ed860cd548305a040ec12e99eb7cb5c92b6b1865cbaf592aa0927e
$ FLUME_CONTAINER_IP=$(docker inspect -f '{{ .NetworkSettings.IPAddress }}' flume)
$ echo ${FLUME_CONTAINER_IP}
172.17.0.3
$ docker stop flume; docker rm flume
flume
flume