0
我是Hadoop的新手,我正在使用Cloudera Quickstart,我想將flume與我的mongodb連接起來。我不知道如何將flume連接到已設置用戶名和密碼的mongoDB。我使用的源類型爲netcat
,通道類型爲memory
,接收器類型爲hdfs
。無法與mongodb連接flume
我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
我跟着這個鏈接,但我的mongodb受到用戶名和密碼的保護。所以我如何讀取受用戶名和密碼保護的我的mongodb,如果您請提供一些示例conf文件,它將有所幫助。 – Ironman
如果您喜歡,請提出問題。 – Ironman