Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Note: The patch FLUME - 2207 is required to reproduce the issue.
The following code causes the flume agent to crash a stack trace when starting (illegal pattern passed to FastDateFormat) :
agent1.sinks.sinkEls.indexNameBuilder.dateFormat = %{format}
In practice, we need a variable to customize the index rotation (daily, weekly, monthly) from a header. (the header is defined in a morphline in our case, configured as an interceptor on the source)
The problem happens because the FastDateFormat is instanciated in the method configure. We could delay its instanciation inside the method getIndexName without decrease the performance of the agent (FastDateFormat uses caching extensively). I added a patch to present this implementation.
Attachments
Attachments
Issue Links
- depends upon
-
FLUME-2207 HDFS file suffix style index suffix in ElasticSearchSink
- Patch Available