receive

来源:互联网 发布:js控制embed 编辑:程序博客网 时间:2024/05/17 00:59
#agent section    
producer.sources = s    
producer.channels = c    
producer.sinks = r    
    
#source section    
producer.sources.s.type = avro  
producer.sources.s.bind = 192.168.100.110  
producer.sources.s.port = 1314


producer.sources.s.channels = c    
    
# Each sink's type must be defined    
producer.sinks.r.type = org.apache.flume.sink.kafka.KafkaSink  
producer.sinks.r.topic = 41sp2plog  
producer.sinks.r.brokerList = 192.168.100.110:9092,192.168.100.111:9092,192.168.100.112:9092  
producer.sinks.r.requiredAcks = 1  
producer.sinks.r.batchSize = 20  
producer.sinks.r.channel = c1


#Specify the channel the sink should use    
producer.sinks.r.channel = c   
   
    
# Each channel's type is defined.    
producer.channels.c.type   = org.apache.flume.channel.kafka.KafkaChannel  
producer.channels.c.capacity = 10000  
producer.channels.c.transactionCapacity = 1000 
producer.channels.c.brokerList=192.168.100.110:9092,192.168.100.111:9092,192.168.100.112:9092  
producer.channels.c.topic = channel1
producer.channels.c.zookeeperConnect=192.168.100.110:2181,192.168.100.111:2181,192.168.100.112:2181  
0 0
原创粉丝点击