Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7149 IBM JDK specific issues
  3. HBASE-6945

Compilation errors when using non-Sun JDKs to build HBase-0.94

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.6, 0.95.0
    • 0.98.0, 0.95.0
    • build
    • RHEL 6.3, IBM Java 7

    • Reviewed

    Description

      When using IBM Java 7 to build HBase-0.94.1, the following comilation error is seen.

      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /home/hadoop/hbase-0.94/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java:[23,25] error: package com.sun.management does not exist
      [ERROR] /home/hadoop/hbase-0.94/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java:[46,25] error: cannot find symbol
      [ERROR] symbol: class UnixOperatingSystemMXBean
      location: class ResourceAnalyzer
      /home/hadoop/hbase-0.94/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java:[75,29] error: cannot find symbol
      [ERROR] symbol: class UnixOperatingSystemMXBean
      location: class ResourceAnalyzer
      /home/hadoop/hbase-0.94/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java:[76,23] error: cannot find symbol
      [INFO] 4 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------

      I have a patch available which should work for all JDKs including Sun.
      I am in the process of testing this patch. Preliminary tests indicate the build is working fine with this patch. I will post this patch when I am done testing.

      Attachments

        1. HBASE-6945.patch
          8 kB
          Kumar Ravi
        2. HBASE_0.94.3.patch
          9 kB
          Kumar Ravi
        3. 6945-v2.txt
          14 kB
          Michael Stack

        Issue Links

          Activity

            People

              kumarr Kumar Ravi
              kumarr Kumar Ravi
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: