GithubHelp home page GithubHelp logo

docker-flume's Introduction

docker-flume

Docker image for Apache Flume

Supported tags and respective Dockerfile links

Quick reference

How to run

  • run with default

    docker run -d mengluo668/flume

    NOTE: The agent name for default configuration is 'agent'๏ผŒ you can customize it by docker enviroment. please refer to blow.

  • run with customized agent name

    docker run -e AGENT=myAgent mengluo668/flume

    NOTE: If you run the image with a customized agent name, do remember that, the same agent name must be exist in your configuration file. e.g, flume-conf.properties. Please refer to blow.

  • run with customized configurations

    docker run -v /path/to/your/conf.properties:/apache-flume/conf/flume-conf.properties mengluo668/flume

    NOTE: If you has a different agent name than default, do remember to set docker environment for your agent.

  • run with customized log configurations

    docker run -v /path/to/your/log4j.properties:/apache-flume/conf/log4j.properties mengluo668/flume

    NOTE: You can specify where to output logs by log4j.properties

  • run with customized command

    docker run mengluo668/flume sh -c "./bin/flume-ng agent -n ${AGENT} -c conf -f conf/flume-conf.properties"

    NOTE: You can run flume with your preferred command!

  • stack deploy

    version: "3.6"
    services:
      flume1:
        image: mengluo668/flume:1.8.0
        hostname: flume1.example.com
        container_name: flume1.example.com
        restart: always
        environment:
          AGENT: fw
        volumes:
          - ${PWD}/flume/fw.properties:/apache-flume/conf/flume-conf.properties
        networks:
          webnet:
            aliases:
              - "flume1.example.com"
      flume2:
        image: mengluo668/flume:1.8.0
        hostname: flume2.example.com
        container_name: flume2.example.com
        restart: always
        environment:
          AGENT: sw
        volumes:
        - ${PWD}/flume/sw.properties:/apache-flume/conf/flume-conf.properties
        networks:
          webnet:
            aliases:
              - "flume2.example.com"
    networks:
      webnet:

docker-flume's People

Contributors

luoxiaojun1992 avatar supermanhub 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.