Flume を学習しています。システムからログ ファイルを読み取ろうとしているときに、インターネットからダウンロードした次のコードを使用しました。
agent.sources = tailSrc
agent.channels = memoryChannel
agent.sinks = hdfsSink
agent.sources.tailSrc.type = exec
agent.sources.tailSrc.command = tail -f /home/kumar/hadoop-2.5.1/logs/hadoop-kumar-namenode-admin.log
agent.sources.tailSrc.channels = memoryChannel
agent.sinks.hdfsSink.type = hdfs
agent.sinks.hdfsSink.hdfs.path = hdfs://localhost:50000/flume
agent.sinks.hdfsSink.channel = memoryChannel
agent.channels.memoryChannel.type = memory
agent.channels.memoryChannel.capacity = 100
上記のコードでは、tailSrc.commands の意味がわかりません。ソースがエージェント内で構成され、外部ソースからイベント (データ) を取得することはわかっています。