Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Reply To: Flume spoolDir

$
0
0

Modified Code I used

agent.sources = r1
agent.sinks = k1
agent.channels = c1

# Bind the source and sink to the channel
agent.sources.r1.channels = c1
agent.sinks.k1.channel = c1

# Describe/configure the source
agent.sources.r1.type = spooldir
agent.sources.r1.spoolDir = /home/splunk/data

#agent.sinks.k1.type = logger

# Describe the sink
agent.sinks.k1.type = hdfs
agent.sinks.k1.hdfs.path = /incoming/hunk/ecm
agent.sinks.k1.hdfs.filePrefix = %{basename}-
agent.sinks.k1.hdfs.round = true
agent.sinks.k1.hdfs.roundValue = 10
agent.sinks.k1.hdfs.roundUnit = minute


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>