[
https://issues.apache.org/jira/browse/FLUME-2717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387374#comment-15387374
]
Lior Zeno commented on FLUME-2717:
----------------------------------
Are we planning to support hadoop-2.7.0? Currently hadoop2.version is set to
2.4.0.
I wonder why we don't have this issue with 2.4.0, as it depends on commons-io
2.4, and the Charsets class was added to commons-io at 2.3
(https://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html?org/apache/commons/io/Charsets.html).
Is it because hadoop does not use this class in 2.4.0?
> Add commons-io dependency into hadoop-2 profile to enable Flume 1.5 to
> support Hadoop 2.7
> -----------------------------------------------------------------------------------------
>
> Key: FLUME-2717
> URL: https://issues.apache.org/jira/browse/FLUME-2717
> Project: Flume
> Issue Type: Improvement
> Components: Sinks+Sources
> Affects Versions: v1.5.0
> Reporter: sam liu
> Assignee: Xiang Li
> Fix For: v1.7.0
>
> Attachments: FLUME-2717-001.patch
>
>
> By default, for branch origin/flume-1.5, the hadoop2.version is 2.4.0.
> However, if we want to use hadoop-2.7.0 in flume-1.5, some hadoop regarding
> tests will fail with exception 'java.lang.NoClassDefFoundError:
> org/apache/commons/io/Charsets'.
> The missed class Charsets is a new class in commons-io 2.4 jar file which is
> invoked by hadoop-2.7.0, however flume-1.5 depends on commons-io 2.1 which
> does not include the class 'Charsets'.
> Therefore the solution to enable flume-1.5 to support hadoop-2.7.0 is to add
> commons-io 2.4 as a dependency into the hadoop-2 profile.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)