Unable to run the Wikipedia / Twitter examples

Hi,

I’m having difficulties running the out of the box wikipedia and twitter samples. Here are the errors I get. I am able to ping irc.wikimedia.org

0c4de9b8c264.local/fe80:0:0:0:0:0:0:1%1:2181. Will not attempt to authenticate using SASL (unknown error)

2015-03-13T19:08:15,761 WARN [main-SendThread(0c4de9b8c264.local: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) ~[?:1.8.0_31]

at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716) ~[?:1.8.0_31]

at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.6.jar:3.4.6-1569965]

at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) [zookeeper-3.4.6.jar:3.4.6-1569965]

2015-03-13T19:08:15,869 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)

2015-03-13T19:08:15,870 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) ~[?:1.8.0_31]

at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716) ~[?:1.8.0_31]

at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.6.jar:3.4.6-1569965]

at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) [zookeeper-3.4.6.jar:3.4.6-1569965]

2015-03-13T19:08:15,910 ERROR [main] com.ircclouds.irc.api.IRCApiImpl - Error opening session

java.net.ConnectException: Connection refused

2015-03-13T19:08:15,910 ERROR [main] io.druid.segment.realtime.firehose.IrcFirehoseFactory - Unable to connect to irc server [irc.wikimedia.org]

java.net.ConnectException: Connection refused

I also get errors while trying to run the twitter example.

Thanks,

Ranjit

I am running on a Mac btw.

looks like it can’t connect to 2181 which is zookeeper. Do you have Zookeeper running locally, or are you intending to connect to an external zookeeper?

http://druid.io/docs/0.7.0/ZooKeeper.html

In case anyone finds this thread by search.

This is technically a bug with the first Druid tutorial. I’ll work on a fix.

In the meantime, instructions to start Zookeeper can be found here:

http://druid.io/docs/latest/Tutorial:-The-Druid-Cluster.html

Ok, the first tutorial has been updated with instructions on starting Zookeeper.

This is technically a regression as the old 0.6.x tutorials had the proper setup instructions for zookeeper with the first tutorial.

Thanks for all your responses. For me this turned out to be a corporate firewall issue that was blocking outbound IRC calls, which the wikipedia realtime example requires. I was able to run it fine from home.