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

hbase-hadoop1-compat conflicts with -Dhadoop.profile=2.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.95.2
    • 0.95.0
    • build
    • None
    • Reviewed

    Description

      I'm unclear on the root cause / fix. Here is the scenario:

      mvn clean package install -Dhadoop.profile=2.0 -DskipTests
      bin/start-hbase.sh
      

      fails with

      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.metrics2.lib.MetricMutable
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      

      doing

      rm -rf hbase-hadoop1-compat/target/
      

      makes it work.

      In the pom.xml, we never reference hadoop2-compat. But doing so does not help: hadoop1-compat is compiled and takes precedence over hadoop2...

      Attachments

        1. HBASE-7637-0.patch
          2 kB
          Elliott Neil Clark
        2. nomodules.patch
          2 kB
          Nicolas Liochon

        Activity

          People

            eclark Elliott Neil Clark
            nkeywal Nicolas Liochon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: