其他分享
首页 > 其他分享> > flume之多source配置

flume之多source配置

作者:互联网

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

#定义代理名称和组件名称 
hsh.sources =cplog login loginall user voice coupon
hsh.sinks = avro_sink 
hsh.channels = hshchannel
 
#具体定义cplog
hsh.sources.cplog.type = exec 
hsh.sources.cplog.command = /bin/flumeSh.sh /data/log/Logs/Attachment/Log/AllData/Cp_BCodeCallBack-DATE_ROTATE.log
hsh.sources.login.type = exec 
hsh.sources.login.command = /bin/flumeSh.sh /data/log/Logs/Attachment/Log/AllData/log_code-DATE_ROTATE.log
hsh.sources.loginall.type = exec 
hsh.sources.loginall.command = /bin/flumeSh.sh /data/log/Logs/Attachment/Log/AllData/user_coupon-DATE_ROTATE.log
hsh.sources.user.type = exec 
hsh.sources.user.command = /bin/flumeSh.sh /data/log/Logs/Attachment/Log/AllData/voice_verify-DATE_ROTATE.log
hsh.sources.voice.type = exec 
hsh.sources.voice.command = /bin/flumeSh.sh /data/log/Logs/Attachment/Log/AllData/login_all-DATE_ROTATE.log
hsh.sources.coupon.type = exec 
hsh.sources.coupon.command = /bin/flumeSh.sh /data/log/Logs/Attachment/Log/AllData/user_coupon_log-DATE_ROTATE.log 
#具体定义sink 
hsh.sinks.avro_sink.type = avro 
hsh.sinks.avro_sink.hostname = 192.100.4.248
hsh.sinks.avro_sink.port = 42410
hsh.sinks.avro_sink.request-timeout=60
hsh.sinks.avro_sink.batchSize = 1000
 
#具体定义channel 
hsh.channels.hshchannel.type = memory
hsh.channels.hshchannel.capacity=1000000
hsh.channels.hshchannel.keep-alive=10
hsh.channels.hshchannel.transactioncapacity=1100

 
#组装source channel sink 
hsh.sources.cplog.channels = hshchannel
hsh.sources.login.channels = hshchannel
hsh.sources.loginall.channels = hshchannel
hsh.sources.user.channels = hshchannel
hsh.sources.voice.channels = hshchannel
hsh.sources.coupon.channels = hshchannel
hsh.sinks.avro_sink.channel = hshchannel

 

标签:flume,log,sources,hsh,channels,source,sink,之多,hshchannel
来源: https://blog.csdn.net/lzlnd/article/details/100774188