document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. agent.sources = avro-collection-source
  2. agent.channels = memoryChannel
  3. agent.sinks = hdfs-sink
  4.  
  5. # For each one of the sources, the type is defined
  6. agent.sources.avro-collection-source.type = avro
  7. agent.sources.avro-collection-source.bind = 10.240.242.93
  8. agent.sources.avro-collection-source.port = 60000
  9.  
  10. # The channel can be defined as follows.
  11. agent.sources.avro-collection-source.channels = memoryChannel
  12.  
  13. # Each sink's type must be defined
  14. agent.sinks.hdfs-sink.type = hdfs
  15. agent.sinks.hdfs-sink.hdfs.path = hdfs://HDFSNodeName:port/flume
  16.  
  17. #Specify the channel the sink should use
  18. agent.sinks.hdfs-sink.channel = memoryChannel
  19.  
  20. # Each channel's type is defined.
  21. agent.channels.memoryChannel.type = memory
  22.  
  23. # Other config values specific to each type of channel(sink or source)
  24. # can be defined as well
  25. # In this case, it specifies the capacity of the memory channel
  26. agent.channels.memoryChannel.capacity = 20000
  27. agent.channels.memoryChannel.transactionCapacity = 2000
');