0
私はHadoopを初めて使用しています。私はCloudera Quickstartを使用しています。flumeをmongodbに接続したいと思います。私はユーザー名とパスワードを設定したmongoDBにflumeを接続する方法を知らない。ソースタイプをnetcat
、チャネルタイプをmemory
、シンクタイプをhdfs
としています。flongとmongodbを接続できません
私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をユーザ名とパスワードで保護しているのですか? – Ironman
あなたがそれを好きなら質問をアップしてください。 – Ironman