Installing zookeeper-3.4.5 for the first time.

I was able to compile with "ant" and start up the server with
"bin/zkServer.sh start" on RedHat.

 

But running the test (or the startup) as the docs show doesn't work (Step 6
and Step 7 both don't work).

 

>From the zookeeper directory I run (I noted that there is no zookeeper.jar
so I did change that to point to what was built - perhaps the docs should
reflect that too).

java -cp
zookeeper-3.4.5.jar:lib/slf4j-api-1.6.1.jar:lib/slf4j-log4j12-1.6.1.jar:lib/
log4j-1.2.15.jar:conf:src/java/lib/jline-0.9.94.jar \
org.apache.zookeeper.ZooKeeperMain -server

 

I'm a Java idiot so I don't understand why it can't find ZooKeeperMain -
it's in the jar.

jar tf zookeeper-3.4.5.jar|grep ZooKeeperMain

org/apache/zookeeper/ZooKeeperMain$1.class

org/apache/zookeeper/ZooKeeperMain$2.class

org/apache/zookeeper/ZooKeeperMain$MyCommandOptions.class

org/apache/zookeeper/ZooKeeperMain$MyWatcher.class

org/apache/zookeeper/ZooKeeperMain.class

org/apache/zookeeper/ZooKeeperMain.java

 

Same goes for the java startup on the server too (even though the
zkServer.sh script works just fine).

 

 

Michael Black

 

Reply via email to