[
https://issues.apache.org/jira/browse/FLUME-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348312#comment-16348312
]
Helmut Wahrman commented on FLUME-3021:
---------------------------------------
The patch is working ok, since you now longer don't get any errors.
You should have a log4j2.xml file in your flume conf folder.
Sorry, but setting a log4j config file is out of scope for this patch.
Please use search engines to find out how to configure log4j.
mine is like this:
<Configuration>
<Properties>
<Property name="LOG_DIR">./logs</Property>
</Properties>
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d (%t) [%p - %l] %m%n" />
</Console>
<RollingFile name="LogFile" fileName="${LOG_DIR}/flume.log"
filePattern="${LOG_DIR}/archive/flume.log.%d\{yyyyMMdd}-%i">
<PatternLayout pattern="%d\{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] (%C.%M:%L)
%equals\{%x}{[]}{} - %m%n" />
<Policies>
<!-- Roll every night at midnight or when the file reaches 100MB -->
<SizeBasedTriggeringPolicy size="100 MB"/>
<CronTriggeringPolicy schedule="0 0 0 * * ?"/>
</Policies>
<DefaultRolloverStrategy min="1" max="20">
<Delete basePath="${LOG_DIR}/archive">
<!-- Nested conditions: the inner condition is only evaluated on files for
which the outer conditions are true. -->
<IfFileName glob="flume.log.*">
<!-- Only allow 1 GB of files to accumulate -->
<IfAccumulatedFileSize exceeds="1 GB"/>
</IfFileName>
</Delete>
</DefaultRolloverStrategy>
</RollingFile>
</Appenders>
<Loggers>
<Logger name="org.apache.flume.lifecycle" level="info"/>
<Logger name="org.jboss" level="WARN"/>
<Logger name="org.apache.avro.ipc.NettyTransceiver" level="WARN"/>
<Logger name="org.apache.hadoop" level="INFO"/>
<Logger name="org.apache.hadoop.hive" level="ERROR"/>
<Root level="INFO">
<AppenderRef ref="LogFile" />
</Root>
</Loggers>
</Configuration>
> flume Elasticsearch 5.0 not support
> -----------------------------------
>
> Key: FLUME-3021
> URL: https://issues.apache.org/jira/browse/FLUME-3021
> Project: Flume
> Issue Type: New Feature
> Components: Sinks+Sources
> Affects Versions: 1.7.0
> Reporter: tycho_yang
> Assignee: Yonghao Zou
> Priority: Major
> Fix For: 1.9.0
>
> Attachments: FLUME-3021-0.patch, FLUME-3021-1.patch,
> FLUME-3021-Enable-ElasticSearch-6.1.x-support.patch,
> FLUME-3021-Enable-ElasticSearch-6.1.x-support.patch,
> image-2018-01-29-13-53-59-412.png, image-2018-01-31-12-00-06-854.png,
> image-2018-01-31-12-00-50-050.png, image-2018-01-31-12-01-55-481.png,
> image-2018-02-01-17-42-37-816.png, image-2018-02-01-17-44-24-082.png,
> image-2018-02-01-17-45-54-668.png, screenshot-1.png, screenshot-2.png,
> screenshot-3.png
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]