我的阅读能力在不断提高。使用flume的txt文件。我知道我可以使用例如
a1.sources.r1.type = netcat a1.sources.r1.bind = localhost a1.sources.r1.port = 44444
但是如何使用文本文件呢?我应该通过什么来代替netcat?
好的,我已经解决了。有必要在“config”文件中提供以下行:
a1.sources.r1.type = exec a1.sources.r1.command = tail -F /path/to/file/ a1.sources.r1.channels = channel
而不是之前的配置文件,然后使用此配置文件调用flume ng。