hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar Ravi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94
Date Wed, 10 Oct 2012 16:59:03 GMT

    [ https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473363#comment-13473363
] 

Kumar Ravi commented on HBASE-6945:
-----------------------------------

stack and Ted, Thanks for your comments and feedback. 

1. The version I found this issue impacting us was in Hbase-0.94.1. I just started looking
at the trunk. Looks like I need to create a patch for the subclasses of ResourceChecker.ResourceAnalyzer().
I'll get a patch for trunk shortly after I understand this implementation, build and test
it out. I have verified this patch applies and tests without any issues on 0.94.2RC3. If there
is another version I need to try this on, please let me know.

2. stack, Re. your question about OSMXBean, I have opened another JIRA - https://issues.apache.org/jira/browse/HBASE-6965.
I viewed the OSMXBean class as a related but separate issue since it could be used elsewhere.

3. I have a questions being new to this process:

  -How can I get this patch submitted for review/approval and eventually checked into both
the Hbase-0.94 and trunk trees? In addition to the patch I attached above do I need to checkin
my changes using svn? Although I am confident this patch should apply smoothly to HBase-0.94,
I want to make sure I am not breaking the process.

Thanks
                
> Compilation errors when using non-Sun JDKs to build HBase-0.94
> --------------------------------------------------------------
>
>                 Key: HBASE-6945
>                 URL: https://issues.apache.org/jira/browse/HBASE-6945
>             Project: HBase
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.94.1
>         Environment: RHEL 6.3, IBM Java 7 
>            Reporter: Kumar Ravi
>            Assignee: Kumar Ravi
>             Fix For: 0.94.3
>
>         Attachments: ResourceChecker.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message