Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3453

Accumulo unit tests fail against Hadoop 2.7.0-SNAPSHOT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.3, 1.7.0
    • build
    • None

    Description

      Tried to build against a 2.7.0-SNAPSHOT and got org.apache.accumulo.start.classloader.vfs.providers.VfsClassLoaderTest and org.apache.accumulo.start.classloader.vfs.providers.ReadOnlyHdfsFileProviderTest failures.

      Looking at the test output:

      [FSImageSaver for .../start/target/build/test/data/dfs/name1 of type IMAGE_AND_EDITS} ERROR org.apache.hadoop.hdfs.server.namenode.FSImage  - Unable to save image for .../start/target/build/test/data/dfs/name1
      java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets
              at org.apache.hadoop.hdfs.server.namenode.FSImageUtil.<clinit>(FSImageUtil.java:36)
              at org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf$Saver.<init>(FSImageFormatProtobuf.java:357)
              at org.apache.hadoop.hdfs.server.namenode.FSImage.saveFSImage(FSImage.java:946)
              at org.apache.hadoop.hdfs.server.namenode.FSImage$FSImageSaver.run(FSImage.java:999)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.Charsets
              at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              ... 5 more
      

      We're still depending on commons-io-2.1 which doesn't contain org.apache.commons.io.Charsets. Thus, the transitive dependency on 2.4 from Hadoop gets overridden and we fail.

      We should upgrade our dependency on commons-io to 2.4.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h