This is an automated email from the ASF dual-hosted git repository.
szaboferee pushed a commit to branch flume-1.8
in repository https://gitbox.apache.org/repos/asf/flume.git
The following commit(s) were added to refs/heads/flume-1.8 by this push:
new 7d2150e FLUME-3311 Update User Guide In HDFS Sink (#273)
7d2150e is described below
commit 7d2150e36c0cfebf601abf36449b14b1ec2a5b84
Author: fuhuaiyong <[email protected]>
AuthorDate: Fri Feb 8 06:07:27 2019 +0800
FLUME-3311 Update User Guide In HDFS Sink (#273)
As the doc describe.
%y last two digits of year (00..99)
%Y year (2010)
BUT
there is somthing wrong in 'a1.sinks.k1.hdfs.path =
/flume/events/%y-%m-%d/%H%M/%S'
I think the right example is 'a1.sinks.k1.hdfs.path =
/flume/events/%Y-%m-%d/%H%M/%S'
Reviewers: Ferenc Szabo
(fuhuaiyong via Ferenc Szabo)
---
flume-ng-doc/sphinx/FlumeUserGuide.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flume-ng-doc/sphinx/FlumeUserGuide.rst
b/flume-ng-doc/sphinx/FlumeUserGuide.rst
index a4e0818..1becff7 100644
--- a/flume-ng-doc/sphinx/FlumeUserGuide.rst
+++ b/flume-ng-doc/sphinx/FlumeUserGuide.rst
@@ -2092,7 +2092,7 @@ Example for agent named a1:
a1.sinks = k1
a1.sinks.k1.type = hdfs
a1.sinks.k1.channel = c1
- a1.sinks.k1.hdfs.path = /flume/events/%y-%m-%d/%H%M/%S
+ a1.sinks.k1.hdfs.path = /flume/events/%Y-%m-%d/%H%M/%S
a1.sinks.k1.hdfs.filePrefix = events-
a1.sinks.k1.hdfs.round = true
a1.sinks.k1.hdfs.roundValue = 10