create hdfs path

2014-06-29 Thread kishore alajangi
HI Experts, My Avro file contains fields year, date and day. how to set the hdfs path to create year, date and day partitions.Please help me. -- Thanks, Kishore.

Re: create hdfs path

2014-06-29 Thread Matt Tenenbaum
There may be even simpler ways, but you can implement org.apache.flume.interceptor.Interceptor to construct a timestamp (milliseconds) from those fields, and then set an event header for "timestamp". private static final String TIMESTAMP = "timestamp"; @Override public Event intercept(Event event