Support Questions

Find answers, ask questions, and share your expertise

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

avatar

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

1 ACCEPTED SOLUTION

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

View solution in original post

1 REPLY 1

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