You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Rawat <ge...@gmail.com> on 2013/10/18 01:47:28 UTC

Mesos/Zookeeper compatibility issue

I get this error at Runtime. Is Mesos 0.15 compatible with Zookeeper 3.4.5
?

2013-10-17 22:35:02,074:15445(0x7f765b7cc700):ZOO_INFO@zookeeper_init@727:
Initiating client connection, host=myserver1.com:2181,myserver2.com:2181,
myserver3.com:2181 sessionTimeout=5000 watcher=0x7f765ed03250 sessionId=0
sessionPasswd=<null> context=0x40e8b370 flags=0
Exception in thread "main" java.lang.NoSuchFieldError: __state
    at org.apache.mesos.state.ZooKeeperState.initialize(Native Method)
    at org.apache.mesos.state.ZooKeeperState.<init>(ZooKeeperState.java:53)

Re: Mesos/Zookeeper compatibility issue

Posted by Rawat <ge...@gmail.com>.
Here is the complete trace.


Exception in thread "main" java.lang.NoSuchFieldError: __state
    at org.apache.mesos.state.ZooKeeperState.initialize(Native Method)
    at org.apache.mesos.state.ZooKeeperState.<init>(ZooKeeperState.java:53)
    at
com.airbnb.scheduler.config.ZookeeperModule.providePersistencStore(ZookeeperModule.scala:43)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
    at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
    at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.Scopes$1$1.get(Scopes.java:65)
    at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at
com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
    at
com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
    at
com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
    at
com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
    at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
    at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.Scopes$1$1.get(Scopes.java:65)
    at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at
com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
    at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
    at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
    at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:98)
    at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
    at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.Scopes$1$1.get(Scopes.java:65)
    at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at
com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
    at
com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
    at
com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
    at
com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
    at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
    at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.Scopes$1$1.get(Scopes.java:65)
    at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at
com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:204)
    at
com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:198)
    at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
    at
com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:198)
    at
com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:179)
    at
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
    at com.google.inject.Guice.createInjector(Guice.java:95)
    at com.google.inject.Guice.createInjector(Guice.java:72)
    at com.airbnb.scheduler.Main$.run(Main.scala:38)
    at com.airbnb.scheduler.Main$.run(Main.scala:20)
    at
com.yammer.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:38)
    at
com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58)
    at com.yammer.dropwizard.cli.Cli.run(Cli.java:53)
    at com.yammer.dropwizard.Service.run(Service.java:61)
    at com.yammer.dropwizard.ScalaService.main(ScalaService.scala:7)
    at com.airbnb.scheduler.Main.main(Main.scala)



On Thu, Oct 17, 2013 at 4:47 PM, Rawat <ge...@gmail.com> wrote:

> I get this error at Runtime. Is Mesos 0.15 compatible with Zookeeper 3.4.5
> ?
>
> 2013-10-17 22:35:02,074:15445(0x7f765b7cc700):ZOO_INFO@zookeeper_init@727:
> Initiating client connection, host=myserver1.com:2181,myserver2.com:2181,
> myserver3.com:2181 sessionTimeout=5000 watcher=0x7f765ed03250 sessionId=0
> sessionPasswd=<null> context=0x40e8b370 flags=0
> Exception in thread "main" java.lang.NoSuchFieldError: __state
>     at org.apache.mesos.state.ZooKeeperState.initialize(Native Method)
>     at org.apache.mesos.state.ZooKeeperState.<init>(ZooKeeperState.java:53)
>
>

Re: Mesos/Zookeeper compatibility issue

Posted by Rawat <ge...@gmail.com>.
Thanks for reply Charles. I am using these

./mesos/mesos/src/mesos-0.15.0.jar
./mesos/mesos/src/.libs/libmesos-0.15.0.so





On Fri, Oct 18, 2013 at 11:39 AM, Charles Reiss <wo...@gmail.com> wrote:

> On 10/17/13 16:47 , Rawat wrote:
> > I get this error at Runtime. Is Mesos 0.15 compatible with Zookeeper
> 3.4.5
> > ?
>
> I think this is a mesos.jar/libmesos.so incompatibility issue introduced in
> https://reviews.apache.org/r/12441/ . Where are the mesos.jar and
> libmesos.so's you are using from?
>
> - Charles
>
> >
> > 2013-10-17 22:35:02,074:15445(0x7f765b7cc700):ZOO_INFO@zookeeper_init
> @727:
> > Initiating client connection, host=myserver1.com:2181,myserver2.com:2181
> ,
> > myserver3.com:2181 sessionTimeout=5000 watcher=0x7f765ed03250
> sessionId=0
> > sessionPasswd=<null> context=0x40e8b370 flags=0
> > Exception in thread "main" java.lang.NoSuchFieldError: __state
> >     at org.apache.mesos.state.ZooKeeperState.initialize(Native Method)
> >     at
> org.apache.mesos.state.ZooKeeperState.<init>(ZooKeeperState.java:53)
> >
>
>

Re: Mesos/Zookeeper compatibility issue

Posted by Charles Reiss <wo...@gmail.com>.
On 10/17/13 16:47 , Rawat wrote:
> I get this error at Runtime. Is Mesos 0.15 compatible with Zookeeper 3.4.5
> ?

I think this is a mesos.jar/libmesos.so incompatibility issue introduced in
https://reviews.apache.org/r/12441/ . Where are the mesos.jar and
libmesos.so's you are using from?

- Charles

> 
> 2013-10-17 22:35:02,074:15445(0x7f765b7cc700):ZOO_INFO@zookeeper_init@727:
> Initiating client connection, host=myserver1.com:2181,myserver2.com:2181,
> myserver3.com:2181 sessionTimeout=5000 watcher=0x7f765ed03250 sessionId=0
> sessionPasswd=<null> context=0x40e8b370 flags=0
> Exception in thread "main" java.lang.NoSuchFieldError: __state
>     at org.apache.mesos.state.ZooKeeperState.initialize(Native Method)
>     at org.apache.mesos.state.ZooKeeperState.<init>(ZooKeeperState.java:53)
>