Complete the code to specify the Flume source type for collecting logs.
agent.sources.src.type = [1]The exec source type is used in Flume to collect logs by running an external command such as tail -F /path/to/logfile.
Complete the code to set the Flume sink type to write logs into HDFS.
agent.sinks.sink.type = [1]The hdfs sink writes the collected data into HDFS storage.
Fix the error in the Flume configuration to correctly bind the source to the channel.
agent.sources.src.channels = [1]The channel name must match the channel defined elsewhere. 'channel1' is the correct channel name.
Fill both blanks to configure the Flume agent's memory channel with capacity and transaction capacity.
agent.channels.memChannel.type = [1] agent.channels.memChannel.capacity = [2]
The memory channel type is 'memory'. Capacity is set to 10000 events.
Fill all three blanks to configure the Flume HDFS sink with path, file prefix, and roll interval.
agent.sinks.hdfsSink.hdfs.path = [1] agent.sinks.hdfsSink.hdfs.filePrefix = [2] agent.sinks.hdfsSink.hdfs.rollInterval = [3]
The HDFS path is '/logs/flume', file prefix is 'logfile', and roll interval is 60 seconds.