sources的type类型
数据源为 linux的文件:
例如:
a1.sources.r1.type = exec
a1.sources.r1.command = tail -F /tmp/root/hive.log
a1.sources.r1.shell = /bin/bash -c
例如:
a1.sources.r1.type = exec
a1.sources.r1.command = tail -F -c +0 /root/calllog.csv
a1.sources.r1.shell = /bin/bash -c
数据源为 其他flume的sink
例如:
a2.sources.r1.type = avro
a2.sources.r1.bind = master
a2.sources.r1.port = 4141
来源是json数据http
例如
b.sources.r2.type=http //来源是json数据
b.sources.r2.port=7777
b.sources.r2.bind=master
sinks的type类型:
下沉到hdfs
例如:
a2.sinks.k1.type = hdfs
a2.sinks.k1.hdfs.path = hdfs://master:9000/flume2/%Y%m%d/%H
下沉到本地文件
例如: