druid icon indicating copy to clipboard operation
druid copied to clipboard

Load streaming data with Tranquility

Open klauszeng opened this issue 8 years ago • 3 comments

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 screen shot 2018-09-20 at 2 47 33 pm

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 avatar Sep 20 '18 18:09 klauszeng

@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.

jon-wei avatar Sep 21 '18 00:09 jon-wei

@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 avatar Sep 21 '18 01:09 jon-wei

@jon-wei Thanks. After deleting both ZK dataDir and resetting the Druid cluster, Druid and Tranquility ran perfect.

klauszeng avatar Sep 21 '18 06:09 klauszeng