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 HDFS sink %y-%m-%d issue

avatar
Not applicable

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
Not applicable
Right, I needed to use %Y rather than %y

View solution in original post

1 REPLY 1

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