You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Li Ping Zhang (JIRA)" <ji...@apache.org> on 2012/11/08 05:06:12 UTC

[jira] [Created] (ZOOKEEPER-1579) Compile error of UnixOperationSystemMXBean with open JDK

Li Ping Zhang created ZOOKEEPER-1579:
----------------------------------------

             Summary: Compile error of UnixOperationSystemMXBean with open JDK
                 Key: ZOOKEEPER-1579
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1579
             Project: ZooKeeper
          Issue Type: Bug
    Affects Versions: 3.4.3, 3.3.4
            Reporter: Li Ping Zhang


zookeeper invokes getOpenFileDescriptorCount() function in  com.sun.management.UnixOperatingSystemMXBean, which only exists in SUN JDK, and open JDK did not implement this function.

    [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientBase.java:57: package com.sun.management does not exist
    [javac] import com.sun.management.UnixOperatingSystemMXBean;
    [javac]                          ^
    [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumBase.java:39: package com.sun.management does not exist
    [javac] import com.sun.management.UnixOperatingSystemMXBean;
    [javac]                          ^
    [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientTest.java:48: package com.sun.management does not exist
    [javac] import com.sun.management.UnixOperatingSystemMXBean;
    [javac]                          ^
    [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumUtil.java:39: package com.sun.management does not exist
    [javac] import com.sun.management.UnixOperatingSystemMXBean;

--
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] (ZOOKEEPER-1579) Compile error of UnixOperationSystemMXBean with open JDK

Posted by "Li Ping Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493810#comment-13493810 ] 

Li Ping Zhang commented on ZOOKEEPER-1579:
------------------------------------------

Thanks Edward and Ted, I also noticed that. 
                
> Compile error of UnixOperationSystemMXBean with open JDK
> --------------------------------------------------------
>
>                 Key: ZOOKEEPER-1579
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1579
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.3.4, 3.4.3
>            Reporter: Li Ping Zhang
>              Labels: patch
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> zookeeper invokes getOpenFileDescriptorCount() function in  com.sun.management.UnixOperatingSystemMXBean, which only exists in SUN JDK, and open JDK did not implement this function.
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientBase.java:57: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumBase.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientTest.java:48: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumUtil.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;

--
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] (ZOOKEEPER-1579) Compile error of UnixOperationSystemMXBean with open JDK

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493615#comment-13493615 ] 

Ted Yu commented on ZOOKEEPER-1579:
-----------------------------------

There is on-going discussion in the referenced HBase JIRAs.
Solution in HBase has not been finalized.
                
> Compile error of UnixOperationSystemMXBean with open JDK
> --------------------------------------------------------
>
>                 Key: ZOOKEEPER-1579
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1579
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.3.4, 3.4.3
>            Reporter: Li Ping Zhang
>              Labels: patch
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> zookeeper invokes getOpenFileDescriptorCount() function in  com.sun.management.UnixOperatingSystemMXBean, which only exists in SUN JDK, and open JDK did not implement this function.
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientBase.java:57: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumBase.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientTest.java:48: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumUtil.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;

--
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] (ZOOKEEPER-1579) Compile error of UnixOperationSystemMXBean with open JDK

Posted by "Paulo Ricardo Paz Vital (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506549#comment-13506549 ] 

Paulo Ricardo Paz Vital commented on ZOOKEEPER-1579:
----------------------------------------------------

Hello, I got the same problem when using IBM Java. ZOOKEEPER-1474 proposed a new wrapper class to solve this problem (basically it's similar to HBASE solution since we've working together), and was committed to trunk this Wednesday. 

Could you check if this patch solve this issue?
                
> Compile error of UnixOperationSystemMXBean with open JDK
> --------------------------------------------------------
>
>                 Key: ZOOKEEPER-1579
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1579
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.3.4, 3.4.3
>            Reporter: Li Ping Zhang
>            Assignee: Li Ping Zhang
>              Labels: patch
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> zookeeper invokes getOpenFileDescriptorCount() function in  com.sun.management.UnixOperatingSystemMXBean, which only exists in SUN JDK, and open JDK did not implement this function.
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientBase.java:57: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumBase.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientTest.java:48: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumUtil.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;

--
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] (ZOOKEEPER-1579) Compile error of UnixOperationSystemMXBean with open JDK

Posted by "Edward Ribeiro (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493613#comment-13493613 ] 

Edward Ribeiro commented on ZOOKEEPER-1579:
-------------------------------------------

Just to shed some light, HBase folks have been addressing this problem recently, so maybe we can use their code to solve this in Zookeeper too. Below are the JIRAs:

https://issues.apache.org/jira/browse/HBASE-6945
https://issues.apache.org/jira/browse/HBASE-6965
                
> Compile error of UnixOperationSystemMXBean with open JDK
> --------------------------------------------------------
>
>                 Key: ZOOKEEPER-1579
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1579
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.3.4, 3.4.3
>            Reporter: Li Ping Zhang
>              Labels: patch
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> zookeeper invokes getOpenFileDescriptorCount() function in  com.sun.management.UnixOperatingSystemMXBean, which only exists in SUN JDK, and open JDK did not implement this function.
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientBase.java:57: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumBase.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientTest.java:48: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumUtil.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;

--
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] [Assigned] (ZOOKEEPER-1579) Compile error of UnixOperationSystemMXBean with open JDK

Posted by "Li Ping Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Li Ping Zhang reassigned ZOOKEEPER-1579:
----------------------------------------

    Assignee: Li Ping Zhang
    
> Compile error of UnixOperationSystemMXBean with open JDK
> --------------------------------------------------------
>
>                 Key: ZOOKEEPER-1579
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1579
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.3.4, 3.4.3
>            Reporter: Li Ping Zhang
>            Assignee: Li Ping Zhang
>              Labels: patch
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> zookeeper invokes getOpenFileDescriptorCount() function in  com.sun.management.UnixOperatingSystemMXBean, which only exists in SUN JDK, and open JDK did not implement this function.
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientBase.java:57: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumBase.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/ClientTest.java:48: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;
>     [javac]                          ^
>     [javac] /root/zookeeper-3.3.4/src/java/test/org/apache/zookeeper/test/QuorumUtil.java:39: package com.sun.management does not exist
>     [javac] import com.sun.management.UnixOperatingSystemMXBean;

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