# Sources, channels, and sinks are defined per
# agent name, in this case flume1.
flume1.sources = kafka-source-1
flume1.channels = hdfs-channel-1
flume1.sinks = hdfs-sink-1
# For each source, channel, and sink, set
# standard properties.
flume1.sources.kafka-source-1.type = org.apache.flume.source.kafka.KafkaSource
flume1.sources.kafka-source-1.zookeeperConnect = ...
2条答案
按热度按时间xcitsw881#
是的,你可以用。如前面的答复中所述。
只想补充一点,您需要使配置类似于:
6vl6ewon2#
是的,你可以用flume作为Kafka的制作人。请看一下flume提供的api:https://flume.apache.org/releases/content/1.6.0/apidocs/org/apache/flume/sink/kafka/kafkasink.html