zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yogesh Patil <patyog...@gmail.com>
Subject Command Line arguments for ZooKeeper Java example
Date Thu, 30 Oct 2014 21:19:23 GMT

I am first time ZooKeepe(ZK) user and trying my hands with the java example
that is provided.

If I understood the purpose of sample client application,
1. It subscribes to (Watches) server notifications
2. Writes to file if notification received
3. Starts/Stops executing the 'exec' commands given as 4th command line

However I fail to test use it as I don't understand what should be the 3rd
run time argument to run this.

I used this - test1 sample.txt ls -la commands line arguments and
I am getting following error:

Exception in thread "main" java.lang.NoClassDefFoundError:
at org.apache.zookeeper.ZooKeeper.<clinit>(ZooKeeper.java:94)
at Executor.<init>(Executor.java:38)
at Executor.main(Executor.java:59)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more

P.S. Codes for Executor and DataMonitor remains as it is given

Can someone help me run it using correct cmd line arguments ?

Yogesh Patil

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message