[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] ZooKeeper configuration through ZooDiscovery

Hi,

Yes, multiple zookeepers on the same machine pointing to the same datadir could cause this. Override the datadir to a unique location.

zookeeper flags can be passed to the zoodiscovery through system properties e.g.

-Dzoodiscovery.dataDir=etc 

See the update wikipage for more information.

http://wiki.eclipse.org/Zoodiscovery#Advanced_configuration


Regards,

Wim

On Mon, Feb 7, 2011 at 12:16 PM, Martin Petzold <mpetzold@xxxxxxx> wrote:
Hi (Wim?),

a have this error with ZooKeeper, the same you noticed in September. What would be the best way to configure my ZooKeeper instanced in OSGi/ECF which is created by my container? Where to put/set zoo.cfg?

Thanks!

Martin

----------

IContainer container = ContainerFactory.getDefault().createContainer("ecf.discovery.zoodiscovery");
ID target = container.getConnectNamespace().createInstance(
       new String[] {"zoodiscovery.flavor.centralized=" + ip});
container.connect(target, null);

----------

[07.02.2011 12:04:33][devsosgi.remoteeventadmin.Activator] INFO : RemoteEventAdmin has been registered.
ZooDiscovery> Discovery Service Activated. 07.02.2011 12:04:33.
[07.02.2011 12:04:33][org.apache.zookeeper.server.ZooKeeperServer] FATAL: Severe unrecoverable error, exiting
java.io.FileNotFoundException: C:\Users\mrp\AppData\Local\Temp\zookeeperData\version-2\snapshot.0 (Das System kann den angegebenen Pfad nicht finden)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at org.apache.zookeeper.server.persistence.FileSnap.serialize(FileSnap.java:224)
   at org.apache.zookeeper.server.persistence.FileTxnSnapLog.save(FileTxnSnapLog.java:211)
   at org.apache.zookeeper.server.ZooKeeperServer.takeSnapshot(ZooKeeperServer.java:260)
   at org.apache.zookeeper.server.ZooKeeperServer.loadData(ZooKeeperServer.java:255)
   at org.apache.zookeeper.server.ZooKeeperServer.startup(ZooKeeperServer.java:366)
   at org.apache.zookeeper.server.NIOServerCnxn$Factory.startup(NIOServerCnxn.java:161)
   at org.eclipse.ecf.provider.zookeeper.core.ZooDiscoveryContainer.startStandAlone(ZooDiscoveryContainer.java:201)
   at org.eclipse.ecf.provider.zookeeper.core.ZooDiscoveryContainer$3.run(ZooDiscoveryContainer.java:162)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
[07.02.2011 12:04:33][org.apache.zookeeper.server.NIOServerCnxn] ERROR: Thread Thread[AWT-Windows,6,main] died
java.lang.IllegalStateException: Shutdown in progress
   at java.lang.ApplicationShutdownHooks.add(Unknown Source)
   at java.lang.Runtime.addShutdownHook(Unknown Source)
   at sun.awt.windows.WToolkit.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev