This is an automated email from the ASF dual-hosted git repository.
szaboferee pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/flume.git
The following commit(s) were added to refs/heads/trunk by this push:
new 7d3396f FLUME-3311 Update User Guide In HDFS Sink
7d3396f is described below
commit 7d3396f26dc1541e9d2a540d50d15a15c38acb74
Author: Ferenc Szabó <[email protected]>
AuthorDate: Fri Feb 8 17:24:42 2019 +0100
FLUME-3311 Update User Guide In HDFS Sink
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'
This closes #273
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 163ec49..cccb028 100644
--- a/flume-ng-doc/sphinx/FlumeUserGuide.rst
+++ b/flume-ng-doc/sphinx/FlumeUserGuide.rst
@@ -2430,7 +2430,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