Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Flume - sink values if it is hdfs: http://hortonworks.com/blog/configure-elastic-search-hadoop-hdp-2-0/ "flume example"

avatar
Rising Star

Hi,

I got this link from the before post:

http://hortonworks.com/blog/configure-elastic-search-hadoop-hdp-2-0/ "flume example"

The diagram show the sink can be hdfs or elastic search. I would like to try with hdfs in sandbox.

What should be the value of sink for hdfs. I tried sink.type=logger, the configuration file is throwing an error.

Since I am learning flume by trying out the examples mentioned in sandbox, it would be good if you could help me.

Thank you, Revathy.

1 ACCEPTED SOLUTION

avatar
Master Mentor

Here's all info on Flume sinks and sample hdfs sink configuration

https://flume.apache.org/FlumeUserGuide.html#hdfs-sink

a1.channels = c1
a1.sinks = k1
a1.sinks.k1.type = hdfs
a1.sinks.k1.channel = c1
a1.sinks.k1.hdfs.path = /flume/events/%y-%m-%d/%H%M/%S
a1.sinks.k1.hdfs.filePrefix = events-
a1.sinks.k1.hdfs.round = true
a1.sinks.k1.hdfs.roundValue = 10
a1.sinks.k1.hdfs.roundUnit = minute

View solution in original post

1 REPLY 1

avatar
Master Mentor

Here's all info on Flume sinks and sample hdfs sink configuration

https://flume.apache.org/FlumeUserGuide.html#hdfs-sink

a1.channels = c1
a1.sinks = k1
a1.sinks.k1.type = hdfs
a1.sinks.k1.channel = c1
a1.sinks.k1.hdfs.path = /flume/events/%y-%m-%d/%H%M/%S
a1.sinks.k1.hdfs.filePrefix = events-
a1.sinks.k1.hdfs.round = true
a1.sinks.k1.hdfs.roundValue = 10
a1.sinks.k1.hdfs.roundUnit = minute