Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Flume HDFS sink %y-%m-%d issue
Labels:
- Labels:
-
Apache Flume
Created on
03-13-2018
02:57 PM
- last edited on
09-16-2022
05:58 AM
by
kh-asen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
1 ACCEPTED SOLUTION
Created 03-13-2018 03:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right, I needed to use %Y rather than %y
1 REPLY 1
Created 03-13-2018 03:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right, I needed to use %Y rather than %y
