如何动态地给通道目录(checkpoint&data dir)命名

ni65a41a  于 2021-06-04  发布在  Flume
关注(0)|答案(0)|浏览(209)

我使用的渠道作为备份在Flume没有任何Flume,它的工作正常。下面是我的工作代码,但如何动态地给出目录或文件名(当日期更改时,我想命名为date-wise(动态创建新目录并作为备份存在于上一个目录中。)


# Name the components on this agent

a1.sources = r1
a1.channels =c1

# Describe/configure the source r1

a1.sources.r1.type = http
a1.sources.r1.port = 40441
a1.sources.r1.bind = X.X.X.X
a1.sources.r1.channels = c1

# Use a channel which buffers events in file

a1.channels.c1.type = file
a1.channels.c1.dataDirs = /data/disk11/flume/Test/dataDirs{**%y%m%d**}
a1.channels.c1.checkpointDir =data/disk11/flume/Test/checkpointDir{**%y%m%d**}
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题