Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2717

Add commons-io dependency into hadoop-2 profile to enable Flume 1.5 to support Hadoop 2.7

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.5.0
    • None
    • Sinks+Sources
    • None

    Description

      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.

      Attachments

        1. FLUME-2717-001.patch
          0.9 kB
          sam liu

        Issue Links

          Activity

            People

              xiangli Xiang Li
              sam liu sam liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: