Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-16682

Fix Shell tests failure. NoClassDefFoundError for MiniKdc

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0, 1.2.4, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Stacktrace

      java.lang.NoClassDefFoundError: org/apache/hadoop/minikdc/MiniKdc
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
      	at java.lang.Class.getDeclaredMethods(Class.java:1975)
      	at org.jruby.javasupport.JavaClass.getMethods(JavaClass.java:2110)
      	at org.jruby.javasupport.JavaClass.setupClassMethods(JavaClass.java:955)
      	at org.jruby.javasupport.JavaClass.access$700(JavaClass.java:99)
      	at org.jruby.javasupport.JavaClass$ClassInitializer.initialize(JavaClass.java:650)
      	at org.jruby.javasupport.JavaClass.setupProxy(JavaClass.java:689)
      	at org.jruby.javasupport.Java.createProxyClass(Java.java:526)
      	at org.jruby.javasupport.Java.getProxyClass(Java.java:455)
      	at org.jruby.javasupport.Java.getInstance(Java.java:364)
      	at org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject(JavaUtil.java:166)
      	at org.jruby.javasupport.JavaEmbedUtils.javaToRuby(JavaEmbedUtils.java:291)
      	at org.jruby.embed.variable.AbstractVariable.updateByJavaObject(AbstractVariable.java:81)
      	at org.jruby.embed.variable.GlobalVariable.<init>(GlobalVariable.java:69)
      	at org.jruby.embed.variable.GlobalVariable.getInstance(GlobalVariable.java:60)
      	at org.jruby.embed.variable.VariableInterceptor.getVariableInstance(VariableInterceptor.java:97)
      	at org.jruby.embed.internal.BiVariableMap.put(BiVariableMap.java:321)
      	at org.jruby.embed.ScriptingContainer.put(ScriptingContainer.java:1123)
      	at org.apache.hadoop.hbase.client.AbstractTestShell.setUpBeforeClass(AbstractTestShell.java:61)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:27)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:78)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.minikdc.MiniKdc
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
      	at java.lang.Class.getDeclaredMethods(Class.java:1975)
      	at org.jruby.javasupport.JavaClass.getMethods(JavaClass.java:2110)
      	at org.jruby.javasupport.JavaClass.setupClassMethods(JavaClass.java:955)
      	at org.jruby.javasupport.JavaClass.access$700(JavaClass.java:99)
      	at org.jruby.javasupport.JavaClass$ClassInitializer.initialize(JavaClass.java:650)
      	at org.jruby.javasupport.JavaClass.setupProxy(JavaClass.java:689)
      	at org.jruby.javasupport.Java.createProxyClass(Java.java:526)
      	at org.jruby.javasupport.Java.getProxyClass(Java.java:455)
      	at org.jruby.javasupport.Java.getInstance(Java.java:364)
      	at org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject(JavaUtil.java:166)
      	at org.jruby.javasupport.JavaEmbedUtils.javaToRuby(JavaEmbedUtils.java:291)
      	at org.jruby.embed.variable.AbstractVariable.updateByJavaObject(AbstractVariable.java:81)
      	at org.jruby.embed.variable.GlobalVariable.<init>(GlobalVariable.java:69)
      	at org.jruby.embed.variable.GlobalVariable.getInstance(GlobalVariable.java:60)
      	at org.jruby.embed.variable.VariableInterceptor.getVariableInstance(VariableInterceptor.java:97)
      	at org.jruby.embed.internal.BiVariableMap.put(BiVariableMap.java:321)
      	at org.jruby.embed.ScriptingContainer.put(ScriptingContainer.java:1123)
      	at org.apache.hadoop.hbase.client.AbstractTestShell.setUpBeforeClass(AbstractTestShell.java:61)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:27)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:78)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      

        Attachments

        1. HBASE-16682.master.001.patch
          0.9 kB
          Apekshit Sharma
        2. HBASE-16682.master.002.patch
          0.9 kB
          Apekshit Sharma
        3. HBASE-16682.master.003.patch
          2 kB
          Apekshit Sharma

          Issue Links

            Activity

              People

              • Assignee:
                appy Apekshit Sharma
                Reporter:
                appy Apekshit Sharma
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: