Load streaming data with Tranquility
Druid newbie here.
My run-through:
I was able to load a batch file following Tutorial: Loading a file and the results were successful, as shown in here

Then I reset the druid cluster by doing
rm -rf log/
rm -rf var/
bin/init
and re-ran coordinator, overlord, historical, middleManager. and broker and started Tranquility by
bin/tranquility server -configFile ../examples/conf/tranquility/wikipedia-server.json -Ddruid.extensions.loadList=[]
.
Then this error(below) happened when I ran
curl -XPOST -H'Content-Type: application/json' --data-binary @quickstart/wikiticker-2015-09-12-sampled.json http://localhost:8200/v1/post/wikipedia
In terminal
{"result":{"received":39244,"sent":0}}
In Tranquility `2018-09-20 18:44:17,151 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Global latestCloseTime[2015-09-12T00:00:00.000Z] for identifier[druid:overlord/wikipedia] has moved past timestamp[2015-09-12T00:00:00.000Z], not creating merged beam
2018-09-20 18:44:17,156 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Turns out we decided not to actually make beams for identifier[druid:overlord/wikipedia] timestamp[2015-09-12T00:00:00.000Z]. Returning None.
2018-09-20 18:44:17,197 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Global latestCloseTime[2015-09-12T00:00:00.000Z] for identifier[druid:overlord/wikipedia] has moved past timestamp[2015-09-12T00:00:00.000Z], not creating merged beam
2018-09-20 18:44:17,198 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Turns out we decided not to actually make beams for identifier[druid:overlord/wikipedia] timestamp[2015-09-12T00:00:00.000Z]. Returning None.
2018-09-20 18:44:17,218 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Global latestCloseTime[2015-09-12T00:00:00.000Z] for identifier[druid:overlord/wikipedia] has moved past timestamp[2015-09-12T00:00:00.000Z], not creating merged beam
2018-09-20 18:44:17,220 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Turns out we decided not to actually make beams for identifier[druid:overlord/wikipedia] timestamp[2015-09-12T00:00:00.000Z]. Returning None.
2018-09-20 18:44:17,229 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Global latestCloseTime[2015-09-12T00:00:00.000Z] for identifier[druid:overlord/wikipedia] has moved past timestamp[2015-09-12T00:00:00.000Z], not creating merged beam
2018-09-20 18:44:17,230 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Turns out we decided not to actually make beams for identifier[druid:overlord/wikipedia] timestamp[2015-09-12T00:00:00.000Z]. Returning None.
2018-09-20 18:44:17,236 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Global latestCloseTime[2015-09-12T00:00:00.000Z] for identifier[druid:overlord/wikipedia] has moved past timestamp[2015-09-12T00:00:00.000Z], not creating merged beam
2018-09-20 18:44:17,237 [ClusteredBeam-ZkFuturePool-d0930b16-ea1d-4095-bbce-b7616fe9c10e] INFO c.m.tranquility.beam.ClusteredBeam - Turns out we decided not to actually make beams for identifier[druid:overlord/wikipedia] timestamp[2015-09-12T00:00:00.000Z]. Returning None.`
any advice?
@klauszeng I think you're hitting this behavior with tranquility: https://groups.google.com/forum/#!topic/druid-development/t2AYsr3ZfX8
For the tutorial, the reset should have instructions for resetting ZK, you'll need to shut down zookeeper after shutting down Druid services, delete the ZK dataDir which is /tmp/zookeeper in the default zoo.cfg, and then restart ZK and the druid services.
I'll fix that in the tutorial docs, thanks for reporting.
@klauszeng Hm, I wasn't able to reproduce this in the tutorial locally (the tranquility tasks were created after I ran the batch jobs and reset the cluster without wiping ZK state), but the solution is to either delete certain paths in ZK as described in the mailing list thread, or for tutorial purposes, to just reset ZK.
@jon-wei Thanks. After deleting both ZK dataDir and resetting the Druid cluster, Druid and Tranquility ran perfect.