【发布时间】:2016-05-13 13:22:23
【问题描述】:
我是 Hadoop 新手,我正在使用 Cloudera Quickstart,我想将 flume 与我的 mongodb 连接。我不知道如何将水槽连接到设置了用户名和密码的 mongoDB。我使用源类型为netcat,通道类型为memory,接收器类型为hdfs。
我的flume.conf 文件
# Please paste flume.conf here. Example:
# Sources, channels, and sinks are defined per
# agent name, in this case 'tier1'.
tier1.sources = source1
tier1.channels = channel1
tier1.sinks = sink1
# For each source, channel, and sink, set
# standard properties.
tier1.sources.source1.type = netcat
tier1.sources.source1.bind = 192.168.x.xxx
tier1.sources.source1.port = 27017
tier1.sources.source1.channels = channel1
tier1.channels.channel1.type = memory
tier1.sinks.sink1.type = hdfs
tier1.sinks.sink1.hdfs.path = /user/cloudera/flume
tier1.sinks.sink1.hdfs.fileType = DataStream
tier1.sinks.sink1.channel = channel1
# Other properties are specific to each type of
# source, channel, or sink. In this case, we
# specify the capacity of the memory channel.
tier1.channels.channel1.capac
【问题讨论】:
标签: hadoop hdfs cloudera flume