Hey guys,
Still trying to get druid to run.
I have MySQL and ZooKeeper. ZooKeeper seems to be running properly.
When I run: ./zkServer.sh start, I get "Starting zookeeper ... STARTED"
My runtime.properties is the base one from the wiki, with some minor modifications.
I switched out:
# **CHANGED** druid.database.connectURI=
# **CHANGED** druid.database.user=user
# **CHANGED** druid.database.password=pass
with the appropriate connectURI, user, password.
and "druid.host=localhost, druid.port=8080"
I didn't touch any of the zookeeper paths in runtime.properties.
So here's the error, I try to fire up Master with: java -Duser.timezone=UTC -Dfile.encoding=UTF-8 -cp compute-config/:druid-services/target/druid-services-0.2.0-SNAPSHOT-selfcontained.jar com.metamx.druid.http.MasterMain
I can't seem to connect to Zookeeper. Here's the message I'm getting:
"2013-02-22 06:59:46,682 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/
127.0.0.1:21812013-02-22 06:59:46,684 WARN [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)"
Does anyone know how to proceed? I am running this while zookeeper server has been started (I'm not sure that really matters though...)
My guess is that my some of my configs are off? I read about using DruidSetup, but didn't get anywhere with that either.
Another issue could be that my ZooKeeper client isn't working properly.
When I try to connect to Zookeeper using the Java method: bin/zkCli.sh -server
127.0.0.1:2181I get errors:
/Users/zookeeper-3.4.5/bin/zkEnv.sh: line 79: [: too many arguments
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.apache.zookeeper.ZooKeeperMain.<clinit>(ZooKeeperMain.java:50)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 1 more
Sorry for the long post. Any insight would be much appreciated.
Thanks!
Jay