Reply
Highlighted
Anonymous
Posts: 0
Accepted Solution

Flume HDFS sink %y-%m-%d issue

While running flume agent with HDFS sink settings

 

agent1.sinks.sink1.hdfs.path = /user/cloudera/myflume/to-hdfs/%y-%m-%d

the files are written in folder 18-03-13, whereas I would like a 4 digit year such as 2018-03-13. Is there a specific setting that I need to include?

 

Screen Shot 2018-03-13 at 21.53.40.png

Screen Shot 2018-03-13 at 21.55.22.png

Anonymous
Posts: 0

Re: Flume HDFS sink %y-%m-%d issue

Right, I needed to use %Y rather than %y
Announcements