Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1941

Phoenix tests are failing in linux env with missing class: StaticMapping

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0, 4.4.1
    • Labels:
      None

      Description

      The exception is for the tests ( testWriteFailureDisablesLocalIndex, testWriteFailureDisablesIndex, testWriteFailureWithRegionServerDown ) . This is showing up on Unix machines.

      beaver.machine|INFO|27671|140471806420736|MainThread|java.lang.NoClassDefFoundError: org/apache/hadoop/net/StaticMapping
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:784)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:738)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:521)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:850)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:775)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:746)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:715)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.phoenix.end2end.index.IndexHandlerIT.setupCluster(IndexHandlerIT.java:115)
      beaver.machine|INFO|27671|140471806420736|MainThread|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      beaver.machine|INFO|27671|140471806420736|MainThread|at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      beaver.machine|INFO|27671|140471806420736|MainThread|at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      beaver.machine|INFO|27671|140471806420736|MainThread|at java.lang.reflect.Method.invoke(Method.java:606)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.Suite.runChild(Suite.java:127)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.Suite.runChild(Suite.java:26)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.phoenix.end2end.End2EndTestDriver.doWork(End2EndTestDriver.java:190)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.hbase.util.AbstractHBaseTool.run(AbstractHBaseTool.java:112)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
      beaver.machine|INFO|27671|140471806420736|MainThread|at org.apache.phoenix.end2end.End2EndTestDriver.main(End2EndTestDriver.java:57)
      beaver.machine|INFO|27671|140471806420736|MainThread|Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.net.StaticMapping
      beaver.machine|INFO|27671|140471806420736|MainThread|at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      beaver.machine|INFO|27671|140471806420736|MainThread|at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      beaver.machine|INFO|27671|140471806420736|MainThread|at java.security.AccessController.doPrivileged(Native Method)
      beaver.machine|INFO|27671|140471806420736|MainThread|at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      beaver.machine|INFO|27671|140471806420736|MainThread|at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      beaver.machine|INFO|27671|140471806420736|MainThread|at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      beaver.machine|INFO|27671|140471806420736|MainThread|at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      beaver.machine|INFO|27671|140471806420736|MainThread|... 34 more
      
      

        Attachments

        1. Phoenix-1941.patch
          2 kB
          Alicia Ying Shu
        2. Phoenix-1941-v1.patch
          2 kB
          Alicia Ying Shu

          Activity

            People

            • Assignee:
              aliciashu Alicia Ying Shu
              Reporter:
              aliciashu Alicia Ying Shu
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: