###############################事件源source########################################### ## flume-kafka-source-1.9.0.jar # For each one of the sources, the type is defined # 使用kafka事件源 agent1.sources.kafkaSource.type = org.apache.flume.source.kafka.KafkaSource agent1.sources.kafkaSource.kafka.bootstrap.servers = localhost:9092 # 注意这里的topic配置是topics 我当初没有写s导致事件源没有启动 数据进不去 找了很长时间问题 agent1.sources.kafkaSource.kafka.topics = kafka-flume # 消费者组id agent1.sources.kafkaSource.kafka.consumer.group.id = kafka-flume-hdfs # 批量写入的最大数量 agent1.sources.kafkaSource.kafka.batchSize = 1000 # 批量写入最长等待时间 agent1.sources.kafkaSource.kafka.batchDurationMillis = 1000
# The channel can be defined as follows. # 事件源的通道,绑定通道 agent1.sources.kafkaSource.channels = kafka-channel