Build failure javax.management.InstanceAlreadyExists

332 views
Skip to first unread message

Sean Zhong

unread,
Aug 12, 2013, 8:43:11 AM8/12/13
to storm...@googlegroups.com
Build failed Build failure javax.management.InstanceAlreadyExists, and NPE

Build fail:
============
INFO: Registering org.apache.hadoop.yarn.webapp.GenericExceptionHandler as a provider class
Aug 12, 2013 8:38:27 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.8 06/24/2011 12:17 PM'
Aug 12, 2013 8:38:27 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding org.apache.hadoop.yarn.server.resourcemanager.webapp.JAXBContextResolver to GuiceManagedComponentProvider with the scope "Singleton"
20:38:28.896 [main] INFO  com.yahoo.storm.yarn.TestConfig - storm_home: null
20:38:28.947 [main] ERROR com.yahoo.storm.yarn.TestIntegration - setup failure
java.lang.NullPointerException: null
        at java.util.Hashtable.put(Hashtable.java:542) ~[na:1.7.0_25]
        at java.util.Properties.setProperty(Properties.java:161) ~[na:1.7.0_25]
        at java.lang.System.setProperty(System.java:786) ~[na:1.7.0_25]
        at com.yahoo.storm.yarn.TestConfig.stormHomePath(TestConfig.java:74) ~[test-classes/:na]
        at com.yahoo.storm.yarn.TestIntegration.setup(TestIntegration.java:79) ~[test-classes/:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_25]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_25]
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) ~[junit-4.10.jar:na]
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) ~[junit-4.10.jar:na]
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) ~[junit-4.10.jar:na]
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) ~[junit-4.10.jar:na]
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) ~[junit-4.10.jar:na]
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300) ~[junit-4.10.jar:na]
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) ~[na:na]
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) ~[na:na]
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) ~[na:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_25]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_25]
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) ~[surefire-api-2.10.jar:2.10]
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) ~[surefire-booter-2.10.jar:2.10]
        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) ~[surefire-booter-2.10.jar:2.10]
        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) ~[surefire-booter-2.10.jar:2.10]
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) ~[surefire-booter-2.10.jar:2.10]


And
=====================
8)ogger{36} - Failed to register MBean StandaloneServer_port-1sg
20:38:33.260 [mainhread] org.apache.zookeeper.server.ZooKeeperServer.registerJMX(ZooKeeperServer.java:354)evel org.apache.zookeeper.server.ZooKeeperServer.registerJMX(ZooKeeperServer.java:354)ogger{36} - Failed to register with JMXsg
javax.management.InstanceAlreadyExistsException: org.apache.ZooKeeperService:name0=StandaloneServer_port-1
        at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
        at org.apache.zookeeper.jmx.MBeanRegistry.register(MBeanRegistry.java:76)
        at org.apache.zookeeper.server.ZooKeeperServer.registerJMX(ZooKeeperServer.java:344)
        at org.apache.zookeeper.server.ZooKeeperServer.startup(ZooKeeperServer.java:374)
        at org.apache.zookeeper.server.NIOServerCnxn$Factory.startup(NIOServerCnxn.java:161)
        at com.yahoo.storm.yarn.EmbeddedZKServer.start(EmbeddedZKServer.java:47)
        at com.yahoo.storm.yarn.TestStormMaster.setup(TestStormMaster.java:47)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
20:38:33.712 [main] INFO  com.yahoo.storm.yarn.TestConfig - storm_home: null
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.463 sec <<< FAILURE!


netstat -nlp
===============
[root@idhvm storm-yarn]# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      1377/vsftpd
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1350/sshd
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1189/cupsd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1453/master
tcp        0      0 0.0.0.0:5672                0.0.0.0:*                   LISTEN      1482/qpidd
tcp        0      0 :::80                       :::*                        LISTEN      1463/httpd
tcp        0      0 :::22                       :::*                        LISTEN      1350/sshd
tcp        0      0 ::1:631                     :::*                        LISTEN      1189/cupsd
udp        0      0 0.0.0.0:631                 0.0.0.0:*                               1189/cupsd
udp        0      0 192.168.56.101:123          0.0.0.0:*                               1366/ntpd
udp        0      0 10.0.3.15:123               0.0.0.0:*                               1366/ntpd
udp        0      0 127.0.0.1:123               0.0.0.0:*                               1366/ntpd
udp        0      0 0.0.0.0:123                 0.0.0.0:*                               1366/ntpd
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               1097/dhclient
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               997/dhclient
udp        0      0 fe80::a00:27ff:fe5b:3e6f:123 :::*                                    1366/ntpd
udp        0      0 fe80::a00:27ff:fea1:dccb:123 :::*                                    1366/ntpd
udp        0      0 ::1:123                     :::*                                    1366/ntpd
udp        0      0 :::123                      :::*                                    1366/ntpd

logg.txt

Andy Feng

unread,
Aug 12, 2013, 9:03:14 AM8/12/13
to Sean Zhong, storm...@googlegroups.com
You need to install storm in your build machine. Please make sure 'storm' clc is available via PATH.

Andy Feng

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "storm-yarn" group.
To unsubscribe from this group and stop receiving emails from it, send an email to storm-yarn+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
<logg.txt>

Sean Zhong

unread,
Aug 12, 2013, 1:02:31 PM8/12/13
to storm...@googlegroups.com, Sean Zhong
Still the same error

I follow the steps:
1. goto http://storm-project.net/downloads.html, and download Storm 0.9.0-wip21. Unzip it to some folder.
2. Modify the path: export PATH=path_to_storm_bin:$PATH
3. goto storm_yarn, and mvn package.

What is missing?
Reply all
Reply to author
Forward
0 new messages