FLUME-3311 Update User Guide In HDFS Sink trunk
authorFerenc Szabó <fszabo@cloudera.com>
Fri, 8 Feb 2019 16:24:42 +0000 (17:24 +0100)
committerFerenc Szabó <fszabo@cloudera.com>
Fri, 8 Feb 2019 16:24:42 +0000 (17:24 +0100)
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

index 163ec49..cccb028 100644 (file)
@@ -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