hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh Aggarwal <aggarw...@yahoo.com>
Subject JMX error while starting ZooKeeper
Date Tue, 20 Jul 2010 00:04:40 GMT
Hi Folks,

I am setting up a HBase cluster for pseudo-distributed environment using CDH3 on 
RedHat Linux. 


I am getting the following exception while trying to start ZooKeeper. It is 
complaining about a missing JMX class for managing Log4J, see the exception 
below. I am running JDK1.6_0.21. 


Any ideas on what I may be missing?

thanks

-Rakesh



humancause 08:51:38 ~ $ sudo /etc/init.d/hadoop-zookeeper start
Password:
JMX enabled by default
Using config: /etc/zookeeper/zoo.cfg
Starting zookeeper ... 
STARTED
humancause 08:51:45 ~ $ Exception in thread "main" java.lang.NoSuchMethodError: 
method java.lang.management.ManagementFactory.getPlatformMBeanServer with 
signature ()Ljavax.management.MBeanServer; was not found.
   at 
org.apache.zookeeper.jmx.ManagedUtil.registerLog4jMBeans(ManagedUtil.java:48)
   at 
org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:73)


   at 
org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:51)


   at 
org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:108)


   at 
org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:76)

humancause 08:52:10 ~ $ env | grep JAVA_HOME
JAVA_HOME=/usr/java/jdk1.6.0_21/

humancause 08:52:24 ~ $ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)


Mime
View raw message