Server error

Hey
I am a begineer in druid.

I am trying to load my own data by following the tutorial on http://druid.io/docs/0.11.0/tutorials/tutorial-streams.html.,

I get a server error everytime I try to ingest into the druid

The terminal looks something like this :

dhcp-9-183:druid-0.11.0 ishani$ bin/generate-example-metrics | curl -XPOST -H’Content-Type: application/json’ --data-binary @- http://localhost:8200/v1/post/metrics

Server error

dhcp-9-183:druid-0.11.0 ishani$

There are some errors in the tranquility server log:

2018-02-21 10:08:15,585 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector@40b0d07a{HTTP/1.1}{0.0.0.0:8200}

2018-02-21 10:08:15,586 [main] INFO org.eclipse.jetty.server.Server - Started @4110ms

2018-02-21 10:10:15,055 [qtp1951783627-18] WARN org.apache.curator.ConnectionS

tate - Connection attempt unsuccessful after 119589 (greater than max timeout o

f 20000). Resetting connection and trying again with a new connection.

2018-02-21 10:10:15,055 [qtp1951783627-18] INFO org.apache.zookeeper.ZooKeeper

t=20000 watcher=org.apache.curator.ConnectionState@42ef042a

2018-02-21 10:10:15,064 [qtp1951783627-18] WARN c.m.t.server.http.TranquilityS

ervlet - Server error serving request to http://localhost:8200/v1/post/metrics

java.lang.IllegalStateException: sendAll failed

at com.metamx.tranquility.tranquilizer.Tranquilizer$$anonfun$7.apply(Tr

anquilizer.scala:306) ~[io.druid.tranquility-core-0.8.0.jar:0.8.0]

at com.metamx.tranquility.tranquilizer.Tranquilizer$$anonfun$7.apply(Tr

anquilizer.scala:306) ~[io.druid.tranquility-core-0.8.0.jar:0.8.0]

It might be some stupid mistake but I am not able to get it.

It looks like the zookeeper host is set to “master.example.com”:

2018-02-21 10:10:15,055 [qtp1951783627-18] INFO org.apache.zookeeper.ZooKeeper

t=20000 watcher=org.apache.curator.ConnectionState@42ef042a

I would check the druid.zk.service.host property in your config and make sure that’s set to the machine where you’re running zookeeper

Yeah, It should be the localhost. Thank You soo much it worked :slight_smile: