flum下载安装

Posted Nice&&Day

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了flum下载安装相关的知识,希望对你有一定的参考价值。

1.环境

centos,apache-flume-1.6.0-bin.tar.gz

2.解压

进入conf/目录,创建*.properties文件

agent.sources = seqGenSrc
agent.channels = memoryChannel
agent.sinks = loggerSink

# For each one of the sources, the type is defined
agent.sources.seqGenSrc.type = exec
agent.sources.seqGenSrc.command=tail -f /data/www/logs/apps/userinfo/info.log
# The channel can be defined as follows.
agent.sources.seqGenSrc.channels = memoryChannel

# Each sinks type must be defined
agent.sinks.loggerSink.type = org.apache.flume.sink.kafka.KafkaSink
agent.sinks.loggerSink.topic = userinfoTopic
agent.sinks.loggerSink.brokerList = 10.10.12.173:9092
agent.sinks.loggerSink.batchSize = 20
agent.sinks.loggerSink.requiredAcks = 1
#Specify the channel the sink should use
agent.sinks.loggerSink.channel = memoryChannel

# Each channels type is defined.
agent.channels.memoryChannel.type = memory

# Other config values specific to each type of channel(sink or source)
# can be defined as well
# In this case, it specifies the capacity of the memory channel
agent.channels.memoryChannel.capacity = 100

3.启动

进入bin目录

./flume-ng agent --conf ../conf --conf-file ../conf/*.properties --name agent -Dflume.root.logger=INFO,console

 

以上是关于flum下载安装的主要内容,如果未能解决你的问题,请参考以下文章

#VSCode保存插件配置并使用 gist 管理代码片段

根据图片的url地址下载图片到本地保存代码片段

片段中的Firebase数据不是持久的,会重新下载

我无法从 firebase 获取下载网址()。请任何人帮助这是我的代码和错误。 (我正在使用片段)[重复]

16个必备的JavaScript代码片段

在Tomcat的安装目录下conf目录下的server.xml文件中增加一个xml代码片段,该代码片段中每个属性的含义与用途