Fixed some errors in the realtime.spec and query.body files and cleaned up the format to make it more readable as an example.

This commit is contained in:
Stefán Freyr Stefánsson 2013-07-15 18:38:21 +00:00
parent 82d2623cc9
commit a43ccf587f
2 changed files with 39 additions and 36 deletions

View File

@ -8,5 +8,5 @@
{"type": "longSum", "name": "imps", "fieldName": "impressions"}, {"type": "longSum", "name": "imps", "fieldName": "impressions"},
{"type": "doubleSum", "name": "wp", "fieldName": "wp"} {"type": "doubleSum", "name": "wp", "fieldName": "wp"}
], ],
"intervals": ["2010-01-01T00:00/2020-01-01T00"] "intervals": ["2010-01-01T00:00/2020-01-01T00:00"]
} }

View File

@ -1,40 +1,43 @@
[{ [{
"schema": { "schema" : {
"dataSource": "randseq", "dataSource":"rabbitmqtest",
"aggregators": [ "aggregators":[
{"type": "count", "name": "events"}, {"type":"count", "name":"impressions"},
{"type": "doubleSum", "name": "outColumn", "fieldName": "inColumn"} {"type":"doubleSum","name":"wp","fieldName":"wp"}
], ],
"indexGranularity": "minute", "indexGranularity":"minute",
"shardSpec": {"type": "none"} "shardSpec" : { "type": "none" }
}, },
"config" : {
"config": { "maxRowsInMemory" : 500000,
"maxRowsInMemory": 50000, "intermediatePersistPeriod" : "PT1m"
"intermediatePersistPeriod": "PT1m"
}, },
"firehose" : {
"firehose" : { "type" : "rabbitmq", "type" : "rabbitmq",
"consumerProps" : { "username": "test-dude", "consumerProps" : {
"password": "test-word", "host": "localhost",
"virtualHost": "test-vhost", "username": "test-dude",
"host": "localhost", "password": "test-word",
"durable": "true", "virtualHost": "test-vhost",
"exclusive": "false", "durable": "true",
"autoDelete": "false", "exclusive": "false",
"audoAck": "false" "autoDelete": "false",
}, "autoAck": "false"
"queue" : "druidtest", },
"exchange": "test-exchange", "exchange": "test-exchange",
"routingKey": "#", "queue" : "druidtest",
"parser" : { "timestampSpec" : { "column" : "utcdt", "format" : "iso" }, "routingKey": "#",
"data" : { "format" : "json" }, "parser" : {
"dimensionExclusions" : ["wp"] } }, "timestampSpec" : { "column" : "utcdt", "format" : "iso" },
"data" : { "format" : "json" },
"plumber": { "dimensionExclusions" : ["wp"]
"type": "realtime", }
"windowPeriod": "PT5m", },
"segmentGranularity": "hour", "plumber" : {
"basePersistDirectory": "/tmp/example/rand_realtime/basePersist" "type" : "realtime",
"windowPeriod" : "PT5m",
"segmentGranularity":"hour",
"basePersistDirectory" : "/tmp/realtime/basePersist",
"rejectionPolicy": { "type": "messageTime" }
} }
}] }]