docker 搭建 flume
作者:互联网
1、拉取镜像
#docker search flume
#拉取一个稳定的版本
#docker pull probablyfine/flume:2.0.0
2、创建本地目录用来映射docker中目录
#mkdir -p /home/flume/{logs,conf,flume_log}
3、启动容器
#docker run --name flume-test --restart always --net=host \
-v /home/flume/conf:/opt/flume-config/flume.conf \
-v /home/flume/flume_log:/var/tmp/flume_log \
-v /home/flume/logs:/opt/flume/logs \
-v /tmp/test_logs/:/tmp/test_logs/ \
-e FLUME_AGENT_NAME="agent" \
-d probablyfine/flume
4、查看是否安装成功
docker logs 查看日志有没有错误 无错误 安装完成
mkdir -p /home/flume/{logs,conf.flume_log}
标签:flume,logs,log,conf,home,docker,搭建 来源: https://www.cnblogs.com/leihongnu/p/16392554.html