Druid 0.81 example server can't work, please help.

I setup druid 0.8.1 at one server follow the Tutorial: A First Look at Druid, but when I start example server, I got follow exceptions, and get empty result with un_example_client script.

What’s wrong? please help me!

ZooKeeper version: 3.4.6

JDK version: oracle jdk-7u79-linux-x64

2015-11-10T10:23:41,148 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

2015-11-10T10:23:41,148 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=/tmp

2015-11-10T10:23:41,148 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=

2015-11-10T10:23:41,148 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:os.name=Linux

2015-11-10T10:23:41,148 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:os.arch=amd64

2015-11-10T10:23:41,148 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:os.version=3.13.0-24-generic

2015-11-10T10:23:41,149 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.name=root

2015-11-10T10:23:41,149 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.home=/root

2015-11-10T10:23:41,149 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.dir=/opt/druid/druid-0.8.1

2015-11-10T10:23:41,149 INFO [main] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=localhost sessionTimeout=30000 watcher=org.apache.curator.ConnectionState@1eb2ce16

2015-11-10T10:23:41,165 INFO [main] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Invoking start method[public void io.druid.client.ServerInventoryView.start() throws java.lang.Exception] on object[io.druid.client.BatchServerInventoryView@52ef1280].

2015-11-10T10:23:41,167 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)

2015-11-10T10:23:41,174 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established to localhost/127.0.0.1:2181, initiating session

2015-11-10T10:23:41,178 INFO [main] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Invoking start method[public void com.metamx.metrics.MonitorScheduler.start()] on object[com.metamx.metrics.MonitorScheduler@11c692c2].

2015-11-10T10:23:41,180 INFO [main] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Invoking start method[public void io.druid.segment.realtime.RealtimeManager.start() throws java.io.IOException] on object[io.druid.segment.realtime.RealtimeManager@79ba38a0].

2015-11-10T10:23:41,182 INFO [chief-wikipedia[0]] io.druid.segment.realtime.RealtimeManager - Someone get us a plumber!

2015-11-10T10:23:41,184 INFO [main] org.eclipse.jetty.server.Server - jetty-9.2.5.v20141112

2015-11-10T10:23:41,190 INFO [chief-wikipedia[0]] io.druid.segment.realtime.plumber.RealtimePlumber - Creating plumber using rejectionPolicy[serverTime-PT10M]

2015-11-10T10:23:41,190 INFO [chief-wikipedia[0]] io.druid.segment.realtime.RealtimeManager - We have our plumber!

2015-11-10T10:23:41,203 INFO [chief-wikipedia[0]] io.druid.segment.realtime.plumber.RealtimePlumber - Expect to run at [2015-11-10T11:10:00.000Z]

2015-11-10T10:23:41,205 INFO [chief-wikipedia[0]] io.druid.segment.realtime.plumber.RealtimePlumber - Starting merge and push.

2015-11-10T10:23:41,205 INFO [chief-wikipedia[0]] io.druid.segment.realtime.plumber.RealtimePlumber - Found [0] segments. Attempting to hand off segments that start before [2015-11-10T10:00:00.000Z].

2015-11-10T10:23:41,205 INFO [chief-wikipedia[0]] io.druid.segment.realtime.plumber.RealtimePlumber - Found [0] sinks to persist and merge

2015-11-10T10:23:41,205 INFO [chief-wikipedia[0]] io.druid.segment.realtime.RealtimeManager - Calling the FireDepartment and getting a Firehose.

2015-11-10T10:23:41,212 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x150f0ebb8f60000, negotiated timeout = 30000

2015-11-10T10:23:41,216 INFO [main-EventThread] org.apache.curator.framework.state.ConnectionStateManager - State change: CONNECTED

2015-11-10T10:23:41,250 INFO [ServerInventoryView-0] io.druid.client.BatchServerInventoryView - Inventory Initialized

2015-11-10T10:23:41,254 INFO [chief-wikipedia[0]] io.druid.segment.realtime.firehose.IrcFirehoseFactory - connecting to irc server [irc.wikimedia.org]

Nov 10, 2015 10:23:41 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register

INFO: Registering com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider as a provider class

Nov 10, 2015 10:23:41 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register

INFO: Registering io.druid.server.StatusResource as a root resource class

Nov 10, 2015 10:23:41 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate

INFO: Initiating Jersey application, version ‘Jersey: 1.19 02/11/2015 03:25 AM’

2015-11-10T10:23:41,374 INFO [chief-wikipedia[0]] io.druid.segment.realtime.RealtimeManager - Firehose acquired!

Nov 10, 2015 10:23:41 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider

INFO: Binding com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider to GuiceManagedComponentProvider with the scope “Singleton”

Nov 10, 2015 10:23:41 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider

INFO: Binding io.druid.server.QueryResource to GuiceInstantiatedComponentProvider

Nov 10, 2015 10:23:41 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider

INFO: Binding io.druid.segment.realtime.firehose.ChatHandlerResource to GuiceInstantiatedComponentProvider

Nov 10, 2015 10:23:41 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider

INFO: Binding io.druid.server.StatusResource to GuiceManagedComponentProvider with the scope “Undefined”

2015-11-10T10:23:41,808 INFO [main] org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@2cb8f5c3{/,null,AVAILABLE}

2015-11-10T10:23:41,816 INFO [main] org.eclipse.jetty.server.ServerConnector - Started ServerConnector@65a3da7e{HTTP/1.1}{0.0.0.0:8084}

2015-11-10T10:23:41,816 INFO [main] org.eclipse.jetty.server.Server - Started @4889ms

Hey James,

That message, “Will not attempt to authenticate using SASL (unknown error)”, is generally harmless if you aren’t intending to use SASL.

Nothing in this log looks particularly bad; I’m wondering if what’s going on is that the IRC server cannot be connected to. The last log message is “connecting to irc server [irc.wikimedia.org]” but there should also be one about the connection actually going through. Maybe you have a firewall that blocks IRC?

Gian, thanks your answer.

I think there are some problems when use IRC at my network. When I change to use twitter example data, it works fine for me.

在 2015年11月11日星期三 UTC+8上午9:46:03,Gian Merlino写道: