[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2013-01-03 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

Lars, Sorry I was out for a few days, and didn't see you comment. I have some 
questions for you:

1. To confirm my understanding, it looks like you are proposing making JVM a 
static class? I need to try this out.
2. I just added the null check to make sure we didn't end up with an exception.
3. I think this is the line you are referring to: classRef = 
Class.forName("com.sun.management.UnixOperatingSystemMXBean");
   Do you want this to be static?

 The reason I had taken the approach of not making these static was since these 
classes were not on the main path and have been used only by one testcase. If 
you think it makes sense to go the static route, we can try that. But it'll 
take me some time to do that.

> 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: Sub-task
>  Components: build
>Affects Versions: 0.94.1
> Environment: RHEL 6.3, IBM Java 7 
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.96.0, 0.94.5
>
> Attachments: 6945-v2.txt, HBASE_0.94.3.patch, HBASE-6945.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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-11-13 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

A request to the person who will be committing this patch - After review when 
this patch is committed, please delete the file (svn rm?)

hbase-common/src/main/java/org/apache/hadoop/hbase/util/OSMXBean.java that was 
included with HBASE-6965 as the file JVM.java included in the patch above 
replaces that file.

> 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: Sub-task
>  Components: build
>Affects Versions: 0.94.1
> Environment: RHEL 6.3, IBM Java 7 
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.4
>
> Attachments: HBASE-6945.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-11-13 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: HBASE-6945.patch

As per stack's recommendation, merging HBASE-7150 patch (New class JVM.java) 
with patch for ResourceCheckerJUnitListener (This JIRA). 
 Note that JVM.java cannot use hadoop's ShellCommandExecutor as intended due to 
differences in IBM JDK's implementation of the Long class.

> 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: Sub-task
>  Components: build
>Affects Versions: 0.94.1
> Environment: RHEL 6.3, IBM Java 7 
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.4
>
> Attachments: HBASE-6945.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-11-13 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: (was: HBASE-6945_ResourceCheckerJUnitListener.patch)

> 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: Sub-task
>  Components: build
>Affects Versions: 0.94.1
> Environment: RHEL 6.3, IBM Java 7 
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.4
>
>
> 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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-11-12 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

Patch attached which includes use of JVM class instead of OSMXBean

> 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: Sub-task
>  Components: build
>Affects Versions: 0.94.1
> Environment: RHEL 6.3, IBM Java 7 
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.4
>
> Attachments: HBASE-6945_ResourceCheckerJUnitListener.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-11-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: HBASE-6945_ResourceCheckerJUnitListener.patch

> 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: Sub-task
>  Components: build
>Affects Versions: 0.94.1
> Environment: RHEL 6.3, IBM Java 7 
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.4
>
> Attachments: HBASE-6945_ResourceCheckerJUnitListener.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-11-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Status: Open  (was: Patch Available)

> 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: Sub-task
>  Components: build
>Affects Versions: 0.94.1
> Environment: RHEL 6.3, IBM Java 7 
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.4
>
>
> 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-11-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: (was: ResourceCheckerJUnitListener_HBASE_6945-trunk.patch)

> 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: Sub-task
>  Components: build
>Affects Versions: 0.94.1
> Environment: RHEL 6.3, IBM Java 7 
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.4
>
>
> 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


[jira] [Commented] (HBASE-7150) Utility class to determine File Descriptor counts depending on the JVM Vendor

2012-11-12 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-7150:
---

Stack, I have attached the patch to this JIRA. As I mentioned in HBASE-6965, I 
tried but was unable to implement your recommendation of using 
ShellCommandExecutor as it's output is not being parsed by IBM JDK's Long 
class. 

Please review this patch and let me know your comments. Thanks!

> Utility class to determine File Descriptor counts depending on the JVM Vendor
> -
>
> Key: HBASE-7150
> URL: https://issues.apache.org/jira/browse/HBASE-7150
> Project: HBase
>  Issue Type: Improvement
>  Components: build, util
>Affects Versions: 0.94.1, 0.94.2
> Environment: Non Sun JDK environments
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
> Fix For: 0.94.3, 0.96.0
>
> Attachments: HBASE-7150.patch
>
>
> This issue is being opened to replace the OSMXBean class that was submitted 
> in HBASE-6965. A new utility class called JVM is being opened to be used by 
> ResourceChecker (0.94 branch) and ResourceCheckerJUnitListener test classes.
> The patch for the ResourceChecker classes is being addressed by HBASE-6945.

--
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


[jira] [Updated] (HBASE-7150) Utility class to determine File Descriptor counts depending on the JVM Vendor

2012-11-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-7150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-7150:
--

Attachment: HBASE-7150.patch

Trunk: hbase-common/src/main/java/org/apache/hadoop/hbase/util/JVM.java

> Utility class to determine File Descriptor counts depending on the JVM Vendor
> -
>
> Key: HBASE-7150
> URL: https://issues.apache.org/jira/browse/HBASE-7150
> Project: HBase
>  Issue Type: Improvement
>  Components: build, util
>Affects Versions: 0.94.1, 0.94.2
> Environment: Non Sun JDK environments
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
> Fix For: 0.94.3, 0.96.0
>
> Attachments: HBASE-7150.patch
>
>
> This issue is being opened to replace the OSMXBean class that was submitted 
> in HBASE-6965. A new utility class called JVM is being opened to be used by 
> ResourceChecker (0.94 branch) and ResourceCheckerJUnitListener test classes.
> The patch for the ResourceChecker classes is being addressed by HBASE-6945.

--
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


[jira] [Commented] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-11-12 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6965:
---

Opened new issue HBASE-7150 to address the comments listed above.

There is one recommendation that I have not been able to implement 
satisfactorily -- This is the one suggestion about using 
http://hadoop.apache.org/docs/r0.20.0/api/org/apache/hadoop/util/Shell.ShellCommandExecutor.html

When I attempted to use this hadoop API instead of the process management calls 
I had originally used, I was able to build and test successfully using the Sun 
and OpenJDK environments. With IBM JDK 7, although the build is successful, a 
number of tests returned errors with a NumberFormatException. At this point, 
this appears to be a bug with IBM JDK 7's Long class not being able to treat 
the string returned by ShellCommandExecutor properly, and hence the 
NumberFormatException. So I had to revert back to the process calls I had 
implemented. 

When this issue is resolved, I can implement the ShellCommandExecutor call.

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Sub-task
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.96.0
>
> Attachments: HBASE-6965.patch, OSMXBean_HBASE-6965-0.94.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Work started] (HBASE-7150) Utility class to determine File Descriptor counts depending on the JVM Vendor

2012-11-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-7150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on HBASE-7150 started by Kumar Ravi.

> Utility class to determine File Descriptor counts depending on the JVM Vendor
> -
>
> Key: HBASE-7150
> URL: https://issues.apache.org/jira/browse/HBASE-7150
> Project: HBase
>  Issue Type: Improvement
>  Components: build, util
>Affects Versions: 0.94.1, 0.94.2
> Environment: Non Sun JDK environments
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
> Fix For: 0.94.3, 0.96.0
>
>
> This issue is being opened to replace the OSMXBean class that was submitted 
> in HBASE-6965. A new utility class called JVM is being opened to be used by 
> ResourceChecker (0.94 branch) and ResourceCheckerJUnitListener test classes.
> The patch for the ResourceChecker classes is being addressed by HBASE-6945.

--
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


[jira] [Created] (HBASE-7150) Utility class to determine File Descriptor counts depending on the JVM Vendor

2012-11-12 Thread Kumar Ravi (JIRA)
Kumar Ravi created HBASE-7150:
-

 Summary: Utility class to determine File Descriptor counts 
depending on the JVM Vendor
 Key: HBASE-7150
 URL: https://issues.apache.org/jira/browse/HBASE-7150
 Project: HBase
  Issue Type: Improvement
  Components: build, util
Affects Versions: 0.94.2, 0.94.1
 Environment: Non Sun JDK environments
Reporter: Kumar Ravi
Assignee: Kumar Ravi
 Fix For: 0.94.3, 0.96.0


This issue is being opened to replace the OSMXBean class that was submitted in 
HBASE-6965. A new utility class called JVM is being opened to be used by 
ResourceChecker (0.94 branch) and ResourceCheckerJUnitListener test classes.

The patch for the ResourceChecker classes is being addressed by HBASE-6945.

--
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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-31 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

stack, Thanks for the clarification. ok - I'll remove the OSResourceAnalyzer 
class and have it's subclasses become subclasses of OSResourceAnalyzer's 
superclass which seems to be  ResourceChecker.ResourceAnalyzer. I'll get these 
changes in a few days.

> 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
>  Labels: patch
> Fix For: 0.94.4
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-30 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

stack, I see your point about leaving an empty method. As I commented earlier, 
the functionality of this class is already there in the OSMXBean (and will be 
there in the new JVMBean(?) class). 

The issue that one runs into when using the current calls in the abstract 
static class OSResourceAnalyzer, is that UnixOperatingSystemMXBean is not 
available in some JVMs like IBM which is what necessitated the need for the 
OSMXBean class. These lines are basically the body of the method.

 I wanted to avoid messing around with the structure of the 
ResourceCheckerJunitListener class, as it would change a lot of things. 
If something needs to be included in the method, I can reinstate the line 
osStats = ManagementFactory.getOperatingSystemMXBean();, and add a new 
constructor to OSMXBean.

Lines that won't compile with IBM Java due to unavailability of 
UnixOperatingSystemMXBean:
 
-  if (osStats instanceof UnixOperatingSystemMXBean) {
-unixOsStats = (UnixOperatingSystemMXBean) osStats;
-  } else {
-unixOsStats = null;


> 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
>  Labels: patch
> Fix For: 0.94.4
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Commented] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-30 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6965:
---

stack, ok - I agree this is not a management bean. I was trying to find an 
alternative to the Sun Management bean and borrowed the name from there. I can 
rename OSMXBean to JVMBean. 
So just want to make sure I understand the process here - Do I open a new JIRA 
and rename the class name and submit a patch in that new JIRA? What happens to 
this JIRA then? What happens to the OSMXBean class and java file? How do I 
remove it from the tree?

 I'll look at the ShellCommandExecutor in the new JVMBean class. What I am not 
clear about at this point if it provides any more functional value to what I 
already have there? But I'll look into it.

 Please let me know if there is anything else I need to consider. I'll answer 
your questions in HBASE-6945 as well.


> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.96.0, 0.94.4
>
> Attachments: HBASE-6965.patch, OSMXBean_HBASE-6965-0.94.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-25 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

Stack, Hope my last comment addressed your questions and concerns. If you have 
further questions, please let me know. 

We would really like to be in a position to build and support HBase-0.94 built 
and run with IBM JDK, and we believe this solution supports multiple JDKs and 
JVMs.

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
>  Labels: patch
> Fix For: 0.94.4
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-25 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

Thanks Lars, It would really be good to have this for 0.94. Without this patch, 
we cannot build HBASE-0.94 on IBM JDKs as the com.sun.management package is not 
available on the IBM JDK.

> 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
>  Labels: patch
> Fix For: 0.94.4
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-22 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

@stack, I was hoping we could address concerns in HBASE-6965, since this JIRA 
was riding on that.

Here are my responses to your questions for this JIRA:

> We seem to be removing the body of the class.
 The functionality of this class is already there in the OSMXBean.  If this is 
going to be an issue, we need to discuss the best approach about how to 
reorganize the classes. Most of the APIs and methods in the above abstract 
classes access APIs and methods not available in some JVMs.

>Should this class, OSMXBean, be renamed OS since it answers questions about 
>the OS in a way that insulates us against differences in JVM. 

 Do you mean OSBean instead of OSMXBean? I am open to renaming the class to  At 
this point, OSMXBean has been committed to trunk though. If you could let me 
know how to back out the patch now, I can do that. I would like to make sure we 
are in concurrence on the overall class and the methods.

>Maybe a better name would be JVM. Then you'd ask it for an implementation of 
>UnixOperatingSystemMXBean. It would take care of returning the >IBM or Oracle 
>implementation. They both implement the UnixOperatingSystemMXBean Interface?

 I am not sure I follow. IBM Java will not be able to implement the 
UnixOperatingSystemMXBean interface as the IBM Java SDK does not contain the 
com.sun.management package. OSMXBean acts like a wrapper and invokes the 
UnixOperatingSystemMXBean if the JDK is Sun and for IBM provides the equivalent 
functionality. 

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-22 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---


Following is a comment I added in HBASE-6965. Although related, I believe these 
are two separate issues. HBASE-6965 introduces a new Utility Bean class. This 
issue uses the new Bean class in a Junit Test case.

Please let me know if you have further questions.

Thanks!
--
>What JVMs and OS's did you test on out of interest? How many different vendor 
>and OS strings did you test your patch against?

This was tested on Sun (Oracle) JDK 6 (1.6.0_34), OpenJDK 6 and IBM Java 7. All 
tested on RHEL 6.3.

>It seems a big hacky looking for 'IBM' in vendor string figuring if an IBM JVM 
>or not. Are you sure it's always upper case. Any other property >you could 
>check to be sure it is the JVM you think. Does IBM only make a linux JDK?

We borrowed this idea from the code here in hadoop: 
http://svn.apache.org/repos/asf/hadoop/common/tags/release-1.0.3/src/core/org/apache/hadoop/security/UserGroupInformation.java.
 See methods getOSLoginModuleName() - Line 262 and getOsPrincipalClass() - Line 
276.


> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Commented] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-19 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6965:
---

>What JVMs and OS's did you test on out of interest? How many different vendor 
>and OS strings did you test your patch against?

This was tested on Sun (Oracle) JDK 6 (1.6.0_34), OpenJDK 6 and IBM Java 7. All 
tested on RHEL 6.3.

>It seems a big hacky looking for 'IBM' in vendor string figuring if an IBM JVM 
>or not. Are you sure it's always upper case. Any other property >you could 
>check to be sure it is the JVM you think. Does IBM only make a linux JDK?

 We borrowed this idea from the code here in hadoop: 
http://svn.apache.org/repos/asf/hadoop/common/tags/release-1.0.3/src/core/org/apache/hadoop/security/UserGroupInformation.java.
 See methods getOSLoginModuleName() - Line 262 and getOsPrincipalClass() - Line 
276.



> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3, 0.96.0
>
> Attachments: HBASE-6965.patch, OSMXBean_HBASE-6965-0.94.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-18 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Status: Patch Available  (was: Open)

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-18 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: (was: ResourceChecker-0.94.patch)

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-18 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Status: Open  (was: Patch Available)

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-18 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Status: Patch Available  (was: Open)

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceChecker-0.94.patch, 
> ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-18 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: ResourceChecker-0.94.patch

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceChecker-0.94.patch, 
> ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-18 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: ResourceCheckerJUnitListener_HBASE_6945-trunk.patch

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceChecker-0.94.patch, 
> ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-18 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: (was: ResourceCheckerJunitListener_HBASE_6945-trunk.patch)

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceChecker-0.94.patch, 
> ResourceCheckerJUnitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-17 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: OSMXBean_HBASE-6965-0.94.patch

Submitting patch for the 0.94.x release. 
Differences from trunk patch:

1. Path names for OSMXBean.java are different.
2. No changes were required for pom.xml

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch, OSMXBean_HBASE-6965-0.94.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-17 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Status: Open  (was: Patch Available)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-17 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Status: Patch Available  (was: Open)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-17 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: HBASE-6965.patch

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-17 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: (was: HBASE-6965.patch)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Commented] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-16 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6965:
---

I looked at the other classes in the util sub-dir and I now understand what is 
meant by Audience and stability. Please ignore my earlier comment.
Thanks

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Commented] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-16 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6965:
---

Ted and nkeywal - Thanks for your comments and patience working with me on this 
Jira. 

Ted, I'm working on addressing your concerns raised above. I do have one 
question:
Not sure what you mean by "Please add annotation for audience and stability for 
the above class."

I think by audience you mean when this class gets invoked? I am not clear about 
what you mean by stability.
If you could point me to some examples in the hbase code that would be great.


> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Commented] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-16 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6965:
---

As suggested, I have combined the two patches into one. I ran above core tests 
with multiple JDKs before and after submitting the patch and have been unable 
to recreaet the problems in above builds. I understand that the problem 
reported in above pre-commit build is in the hbase-server area, whereas the 
patch above applies to the hbase-common module. Can someone suggest next steps 
on how to resolve this issue?

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-15 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Status: Patch Available  (was: Open)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-15 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: HBASE-6965.patch

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-15 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Status: Open  (was: Patch Available)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-15 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: (was: OSMXBean_HBASE_6965-trunk.patch)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-15 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: (was: pom_HBASE-6965.patch)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: ResourceCheckerJunitListener_HBASE_6945-trunk.patch

Reworked patch with changes suggested by Ted Yu 10/12/12 15:31. Will submit for 
consideration after dependent issue HBASE-6965 is integrated

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJunitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: (was: ResourceCheckerJunitListener_HBASE_6945-trunk.patch)

> 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
>  Labels: patch
> Fix For: 0.94.3
>
>
> 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Status: Open  (was: Patch Available)

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJunitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: pom_HBASE-6965.patch

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: OSMXBean_HBASE_6965-trunk.patch, pom_HBASE-6965.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-12 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

Thanks Ted! I'll fix these. 

Question: How do I tie this issue to HBASE-6965? I have submitted a patch to 
that JIRA too.


> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJunitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Labels: patch  (was: )
Status: Patch Available  (was: In Progress)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: OSMXBean_HBASE_6965-trunk.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: OSMXBean_HBASE_6965-trunk.patch

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: OSMXBean_HBASE_6965-trunk.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: (was: OSMXBean.java)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: OSMXBean_HBASE_6965-trunk.patch
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: ResourceCheckerJunitListener_HBASE_6945-trunk.patch

> 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
>  Labels: patch
> Fix For: 0.94.3
>
> Attachments: ResourceCheckerJunitListener_HBASE_6945-trunk.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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Labels: patch  (was: )
Status: Patch Available  (was: Open)

Patch for ResourceCheckerJunitListener.java for trunk

> 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
>  Labels: patch
> Fix For: 0.94.3
>
>
> 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-12 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: (was: ResourceChecker.patch)

> 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
>
>
> 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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-10 Thread Kumar Ravi (JIRA)

[ 
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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-09 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

Ted, Thanks for your comment. Attaching a patch file..

> 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-09 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: ResourceChecker.patch

> 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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-09 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

A build with the above patch along with the new class in 
https://issues.apache.org/jira/browse/HBASE-6965 were 
built and tested on Revision 1396305: /hbase/branches/0.94 with IBM JDK 7, 
openJDK 6 as well as Oracle JDK 6.

Builds were successful and the junit tests (runDevTests) ran with all three 
JDKs without any errors or failures.

> 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
>
>
> 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-09 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Status: Patch Available  (was: Open)

--- curr_hbase/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java   
2012-10-04 12:59:14.0 -0400
+++ new_hbase/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java
2012-10-08 16:32:00.0 -0400
@@ -20,13 +20,11 @@
 
 package org.apache.hadoop.hbase;
 
-import com.sun.management.UnixOperatingSystemMXBean;
+import org.apache.hadoop.hbase.util.OSMXBean;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.hbase.client.HConnectionTestingUtility;
 
-import java.lang.management.ManagementFactory;
-import java.lang.management.OperatingSystemMXBean;
 import java.util.*;
 
 
@@ -42,42 +40,33 @@
* On unix, we know how to get the number of open file descriptor
*/
   private static class ResourceAnalyzer {
-private static final OperatingSystemMXBean osStats;
-private static final UnixOperatingSystemMXBean unixOsStats;
 
 public long getThreadsCount() {
   return Thread.getAllStackTraces().size();
 }
 
 public long getOpenFileDescriptorCount() {
-  if (unixOsStats == null) {
-return 0;
-  } else {
-return unixOsStats.getOpenFileDescriptorCount();
-  }
+ OSMXBean osMbean = new OSMXBean();
+ if (osMbean != null && osMbean.getUnix() == true) {
+return osMbean.getOpenFileDescriptorCount();
+ }
+else
+return 0;
 }
 
 public long getMaxFileDescriptorCount() {
-  if (unixOsStats == null) {
-return 0;
-  } else {
-return unixOsStats.getMaxFileDescriptorCount();
+  OSMXBean osMbean = new OSMXBean();
+  if (osMbean != null && osMbean.getUnix() == true) {
+   return osMbean.getMaxFileDescriptorCount();
   }
+  else
+  return 0;
 }
 
 public long getConnectionCount(){
   return HConnectionTestingUtility.getConnectionCount();
 }
 
-static {
-  osStats =
-ManagementFactory.getOperatingSystemMXBean();
-  if (osStats instanceof UnixOperatingSystemMXBean) {
-unixOsStats = (UnixOperatingSystemMXBean) osStats;
-  } else {
-unixOsStats = null;
-  }
-}
   }
 
   private static final ResourceAnalyzer rc = new ResourceAnalyzer();

> 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
>
>
> 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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-09 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

I have created another JIRA https://issues.apache.org/jira/browse/HBASE-6965 to 
be used along with the patch I plan to submit here.
This new class called OSMXBean is used by the patch here.

> 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
>
>
> 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


[jira] [Work started] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-09 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on HBASE-6965 started by Kumar Ravi.

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
> Fix For: 0.94.3
>
> Attachments: OSMXBean.java
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-09 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Attachment: OSMXBean.java

Here's the source file for OSMXBean.java. This would reside in the 
src/main/java/org/apache/hadoop/hbase/util directory. 

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
> Fix For: 0.94.3
>
> Attachments: OSMXBean.java
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-09 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Status: Patch Available  (was: Open)

Here's the source file in it's entirety.

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
> Fix For: 0.94.3
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Updated] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-09 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6965:
--

Status: Open  (was: Patch Available)

> Generic MXBean Utility class to support all JDK vendors
> ---
>
> Key: HBASE-6965
> URL: https://issues.apache.org/jira/browse/HBASE-6965
> Project: HBase
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 0.94.1
>Reporter: Kumar Ravi
>Assignee: Kumar Ravi
> Fix For: 0.94.3
>
>
> This issue is related to JIRA 
> https://issues.apache.org/jira/browse/HBASE-6945. This issue is opened to 
> propose the use of a newly created generic 
> org.apache.hadoop.hbase.util.OSMXBean class that can be used by other 
> classes. JIRA HBASE-6945 contains a patch for the class 
> org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the 
> inclusion of this new class, HBase can be built and become functional with 
> JDKs and JREs other than what is provided by Oracle.
>  This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
> platform (Linux or Windows), and contains other methods that return the OS 
> properties - 1. Number of Open File descriptors;  2. Maximum number of File 
> Descriptors.
>  This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well 
> as Oracle JDK 6. Junit tests (runDevTests category) completed without any 
> failures or errors when tested on all the three JDKs.The builds and tests 
> were attempted on branch hbase-0.94 Revision 1396305.

--
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


[jira] [Created] (HBASE-6965) Generic MXBean Utility class to support all JDK vendors

2012-10-09 Thread Kumar Ravi (JIRA)
Kumar Ravi created HBASE-6965:
-

 Summary: Generic MXBean Utility class to support all JDK vendors
 Key: HBASE-6965
 URL: https://issues.apache.org/jira/browse/HBASE-6965
 Project: HBase
  Issue Type: Improvement
  Components: build
Affects Versions: 0.94.1
Reporter: Kumar Ravi
Assignee: Kumar Ravi
 Fix For: 0.94.3


This issue is related to JIRA https://issues.apache.org/jira/browse/HBASE-6945. 
This issue is opened to propose the use of a newly created generic 
org.apache.hadoop.hbase.util.OSMXBean class that can be used by other classes. 
JIRA HBASE-6945 contains a patch for the class 
org.apache.hadoop.hbase.ResourceChecker that uses OSMXBean. With the inclusion 
of this new class, HBase can be built and become functional with JDKs and JREs 
other than what is provided by Oracle.

 This class uses reflection to determine the JVM vendor (Sun, IBM) and the 
platform (Linux or Windows), and contains other methods that return the OS 
properties - 1. Number of Open File descriptors;  2. Maximum number of File 
Descriptors.

 This class compiles without any problems with IBM JDK 7, OpenJDK 6 as well as 
Oracle JDK 6. Junit tests (runDevTests category) completed without any failures 
or errors when tested on all the three JDKs.The builds and tests were attempted 
on branch hbase-0.94 Revision 1396305.



--
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


[jira] [Commented] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-04 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-6945:
---

Hello,

 I am pretty close to having a patch done - Can you pl. assign this to me? 
(kumarr)

Thanks,
Kumar 

Kumar Ravi
IBM Linux Technology Center 

11501 Burnet Road,
Austin, TX 78758

Tel.: (512)286-8179



From:
"nkeywal (JIRA)" 
To:
Kumar Ravi/Austin/IBM@IBMUS, 
Date:
10/04/2012 12:30 PM
Subject:
[jira] [Assigned] (HBASE-6945) Compilation errors when using non-Sun JDKs 
to build HBase-0.94



 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 
]

nkeywal reassigned HBASE-6945:
--

Assignee: nkeywal
 
error is seen. 
/home/hadoop/hbase-0.94/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java:[23,25]
 
error: package com.sun.management does not exist
/home/hadoop/hbase-0.94/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java:[46,25]
 
error: cannot find symbol
/home/hadoop/hbase-0.94/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java:[75,29]
 
error: cannot find symbol
/home/hadoop/hbase-0.94/src/test/java/org/apache/hadoop/hbase/ResourceChecker.java:[76,23]
 
error: cannot find symbol


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




> 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
> Fix For: 0.94.1
>
>
> 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-04 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: (was: OSMXBean.java)

> 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: nkeywal
> Fix For: 0.94.1
>
>
> 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-04 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: (was: ResourceChecker.patch)

> 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
> Fix For: 0.94.1
>
>
> 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-04 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: ResourceChecker.patch

> 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
> Fix For: 0.94.1
>
> Attachments: OSMXBean.java, 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


[jira] [Updated] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-04 Thread Kumar Ravi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Ravi updated HBASE-6945:
--

Attachment: OSMXBean.java

> 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
> Fix For: 0.94.1
>
> Attachments: OSMXBean.java
>
>
> 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


[jira] [Created] (HBASE-6945) Compilation errors when using non-Sun JDKs to build HBase-0.94

2012-10-04 Thread Kumar Ravi (JIRA)
Kumar Ravi created HBASE-6945:
-

 Summary: 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
 Fix For: 0.94.1


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


[jira] [Commented] (HBASE-5261) Update HBase for Java 7

2012-10-01 Thread Kumar Ravi (JIRA)

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

Kumar Ravi commented on HBASE-5261:
---

I ran all the categories (Small, Medium and Large) of Junit tests on 
Hbase-0.94.1 (Revision 1392444) built using IBM Java 7 and all the categories 
ran without any failures.

> Update HBase for Java 7
> ---
>
> Key: HBASE-5261
> URL: https://issues.apache.org/jira/browse/HBASE-5261
> Project: HBase
>  Issue Type: Improvement
>Reporter: Mikhail Bautin
>Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify 
> it is reasonably stable, we can explore utilizing the G1 garbage collector. 
> When all deployments are ready to move to JDK 7, we can start using new 
> language features, but in the transition period we will need to maintain a 
> codebase that compiles both with JDK 6 and JDK 7.

--
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