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

NoClassDefFound building against Hadoop1 in ShellServerTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6.0
    • test
    • None

    Description

      Looks like we don't have the profile dependencies correctly set up. I see this building against hadoop1 but not hadoop2.

      Exception in thread "Thread-126" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
      	at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:437)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod
      	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:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 1 more
      With failures, global counters are inaccurate; consider running with -i
      Copy failed: java.io.IOException: Job failed!
      	at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1357)
      	at org.apache.hadoop.tools.DistCp.copy(DistCp.java:667)
      	at org.apache.hadoop.tools.DistCp.run(DistCp.java:881)
      	at org.apache.accumulo.test.ShellServerTest.exporttableImporttable(ShellServerTest.java:228)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: