[
{
"dataSchema": {
"dataSource": "wikipedia",
"parser": {
"type": "string",
"parseSpec": {
"format": "json",
"timestampSpec": {
"column": "timestamp",
"format": "auto"
},
"dimensionsSpec": {
"dimensions": [
"page",
"language",
"user",
"unpatrolled",
"newPage",
"robot",
"anonymous",
"namespace",
"continent",
"country",
"region",
"city"
],
"dimensionExclusions": [],
"spatialDimensions": []
}
}
},
"metricsSpec": [
{
"type": "count",
"name": "count"
},
{
"type": "doubleSum",
"name": "added",
"fieldName": "added"
},
{
"type": "doubleSum",
"name": "deleted",
"fieldName": "deleted"
},
{
"type": "doubleSum",
"name": "delta",
"fieldName": "delta"
}
],
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "FIVE_MINUTE",
"queryGranularity": "NONE"
}
},
"ioConfig": {
"type": "realtime",
"firehose": {
"type": "kafka-0.8",
"consumerProps": {
"zookeeper.connect": "betatest1.bpaas-dev.local:2181",
"zookeeper.connection.timeout.ms": "15000",
"zookeeper.session.timeout.ms": "15000",
"zookeeper.sync.time.ms": "5000",
"group.id": "druid-example-druid4",
"fetch.message.max.bytes": "1048586",
"auto.offset.reset": "largest",
"auto.commit.enable": "false"
},
"feed": "wikipedia"
},
"plumber": {
"type": "realtime"
}
},
"tuningConfig": {
"type": "realtime",
"maxRowsInMemory": 500000,
"intermediatePersistPeriod": "PT3m",
"windowPeriod": "PT1m",
"basePersistDirectory": "/tmp/realtime/basePersist",
"rejectionPolicy": {
"type": "messageTime"
}
}
}
]
The logs for realtime node looks as. it mentions that it is trying to handoff segments but no errors.
Pushing [wikipedia_2014-01-30T11:55:00.000Z_2014-01-30T12:00:00.000Z_2014-01-30T11:55:00.000Z] to deep storage
2016-01-15T05:46:00,317 INFO [wikipedia-2014-01-30T11:55:00.000Z-persist-n-merge] io.druid.storage.hdfs.HdfsDataSegmentPusher - Copying segment[wikipedia_2014-01-30T11:55:00.000Z_2014-01-30T12:00:00.000Z_2014-01-30T11:55:00.000Z] to HDFS at location[hdfs://10.116.123.109:8020/tmp/druid4/wikipedia/20140130T115500.000Z_20140130T120000.000Z/2014-01-30T11_55_00.000Z/0]
2016-01-15T05:46:00,912 INFO [wikipedia-2014-01-30T11:55:00.000Z-persist-n-merge] io.druid.storage.hdfs.HdfsDataSegmentPusher - Compressing files from[/tmp/realtime/basePersist/wikipedia/2014-01-30T11:55:00.000Z_2014-01-30T12:00:00.000Z/merged] to [hdfs://10.116.123.109:8020/tmp/druid4/wikipedia/20140130T115500.000Z_20140130T120000.000Z/2014-01-30T11_55_00.000Z/0/index.zip]
2016-01-15T05:46:00,983 INFO [wikipedia-2014-01-30T11:55:00.000Z-persist-n-merge] com.metamx.common.CompressionUtils - Adding file[/tmp/realtime/basePersist/wikipedia/2014-01-30T11:55:00.000Z_2014-01-30T12:00:00.000Z/merged/version.bin] with size[4]. Total size so far[0]
2016-01-15T05:46:00,987 INFO [wikipedia-2014-01-30T11:55:00.000Z-persist-n-merge] com.metamx.common.CompressionUtils - Adding file[/tmp/realtime/basePersist/wikipedia/2014-01-30T11:55:00.000Z_2014-01-30T12:00:00.000Z/merged/meta.smoosh] with size[365]. Total size so far[4]
2016-01-15T05:46:00,987 INFO [wikipedia-2014-01-30T11:55:00.000Z-persist-n-merge] com.metamx.common.CompressionUtils - Adding file[/tmp/realtime/basePersist/wikipedia/2014-01-30T11:55:00.000Z_2014-01-30T12:00:00.000Z/merged/00000.smoosh] with size[8,552]. Total size so far[369]
2016-01-15T05:46:38,253 INFO [MonitorScheduler-0] com.metamx.emitter.core.LoggingEmitter - Event [{"feed":"metrics","timestamp":"2016-01-15T05:46:38.253Z","service":"realtime","host":"druid4.bpaas-dev.local:8080","metric":"ingest/events/thrownAway","value":0,"dataSource":"wikipedia"}]
Starting coordination. Getting available segments.
2016-01-15T05:42:22,844
INFO [Coordinator-Exec--0]
io.druid.server.coordinator.helper.DruidCoordinatorSegmentInfoLoader -
Found [0] available segments.
2016-01-15T05:43:11,163 WARN
[DatabaseSegmentManager-Exec--0]
io.druid.metadata.SQLMetadataSegmentManager - No segments found in the
database!
2016-01-15T05:43:11,467 INFO [DatabaseRuleManager-Exec--0]
io.druid.metadata.SQLMetadataRuleManager - Polled and found rules for 1
datasource(s)
2016-01-15T05:43:22,849 INFO [Coordinator-Exec--0]
io.druid.server.coordinator.ReplicationThrottler - [_default_tier]:
Replicant terminate queue is empty.
2016-01-15T05:43:22,849 INFO
[Coordinator-Exec--0]
io.druid.server.coordinator.helper.DruidCoordinatorBalancer -
[_default_tier]: One or fewer servers found. Cannot balance.
2016-01-15T05:43:22,850 INFO [Coordinator-Exec--0] io.druid.server.coordinator.helper.DruidCoordinatorLogger - Load Queues:
2016-01-15T05:43:22,850
INFO [Coordinator-Exec--0]
io.druid.server.coordinator.helper.DruidCoordinatorLogger -
Server[1.1.1.229:8080, historical, _default_tier] has 0 left to load, 0
left to drop, 0 bytes queued, 0 bytes served.
...
2016-01-15T05:47:22,896
INFO [Coordinator-Exec--0]
io.druid.server.coordinator.helper.DruidCoordinatorLogger -
Server[1.1.1.229:8080, historical, _default_tier] has 0 left to load, 0
left to drop, 0 bytes queued, 0 bytes served.
2016-01-15T05:48:11,184
WARN [DatabaseSegmentManager-Exec--0]
io.druid.metadata.SQLMetadataSegmentManager - No segments found in the
database!
2016-01-15T05:48:11,502 INFO [DatabaseRuleManager-Exec--0]
io.druid.metadata.SQLMetadataRuleManager - Polled and found rules for 1
datasource(s)
2016-01-15T05:06:46,622 INFO [main-SendThread(betaTest1.bpaas-dev.local:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established to betaTest1.bpaas-dev.local/1.1.1.249:2181, initiating session
2016-01-15T05:06:46,633 INFO [main-SendThread(betaTest1.bpaas-dev.local:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server betaTest1.bpaas-dev.local/1.1.1.249:2181, sessionid = 0x1523de15b19004c, negotiated timeout = 30000
2016-01-15T05:06:46,643 INFO [main-EventThread] org.apache.curator.framework.state.ConnectionStateManager - State change: CONNECTED
2016-01-15T05:06:46,788 INFO [main] io.druid.server.coordination.ZkCoordinator$BackgroundSegmentAnnouncer - Completed background segment announcing
2016-01-15T05:06:46,789 INFO [main] io.druid.server.coordination.ZkCoordinator - Cache load took 100 ms
2016-01-15T05:06:46,800 INFO [main] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Invoking start method[public void io.druid.server.coordination.AbstractDataSegmentAnnouncer.start()] on object[io.druid.server.coordination.BatchDataSegmentAnnouncer@2a0b901c].
2016-01-15T05:06:46,801 INFO [main] io.druid.server.coordination.AbstractDataSegmentAnnouncer - Announcing self[DruidServerMetadata{name='1.1.1.229:8080', host='1.1.1.229:8080', maxSize=10000000000, tier='_default_tier', type='historical', priority='0'}] at [/druid/announcements/1.1.1.229:8080]
mysql> select * from druid_rules;
+-----------------------------------+------------+--------------------------+-----------------------------------------------------------------+
|
id | dataSource |
version |
payload |
+-----------------------------------+------------+--------------------------+-----------------------------------------------------------------+
|
_default_2016-01-15T05:05:24.542Z | _default |
2016-01-15T05:05:24.542Z |
[{"tieredReplicants",{"_default_tier":2},"type":"loadForever"}] |
+-----------------------------------+------------+--------------------------+-----------------------------------------------------------------+
1 row in set (0.00 sec)drwxr-xr-x - root hdfs 0 2016-01-15 05:15 hdfs://10.116.123.109:8020/tmp/druid4/wikipedia/20140130T010000.000Z_20140130T010500.000Z
drwxr-xr-x - root hdfs 0 2016-01-15 05:19 hdfs://10.116.123.109:8020/tmp/druid4/wikipedia/20140130T033000.000Z_20140130T033500.000Z
drwxr-xr-x - root hdfs 0 2016-01-15 05:23 hdfs://10.116.123.109:8020/tmp/druid4/wikipedia/20140130T071000.000Z_20140130T071500.000Z
drwxr-xr-x - root hdfs 0 2016-01-15 05:11 hdfs://10.116.123.109:8020/tmp/druid4/wikipedia/20140130T115500.000Z_20140130T120000.000Z
drwxr-xr-x - root hdfs 0 2016-01-15 05:50 hdfs://10.116.123.109:8020/tmp/druid4/wikipedia/20140330T010000.000Z_20140330T010500.000Z
--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/e6cc804d-5142-4d33-ad8f-ad472bb5b7fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2016-01-18T22:02:05,449 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.metadata.MetadataStorageConnectorConfig] from props[druid.metadata.storage.connector.] as [DbConnectorConfig{createTables=true, connectURI='jdbc:mysql://localhost:3306/druid', user='druid', passwordProvider=io.druid.metadata.DefaultPasswordProvider}]
2016-01-18T22:02:05,493 INFO [main] io.druid.metadata.storage.mysql.MySQLConnector - Configured MySQL as metadata storage...
--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/62accd58-60bf-479a-9c02-b5c778aac242%40googlegroups.com.
"tuningConfig" : {
"type" : "index",
"targetPartitionSize" : -1,
"rowFlushBoundary" : 500000,
"numShards": 1
}--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/44ca400f-90ff-4f2a-a70e-94c7dc42681b%40googlegroups.com.