Skip to content

Instantly share code, notes, and snippets.

@pdeva
Last active August 29, 2015 14:06
Show Gist options
  • Save pdeva/614465c0765cc3eb319b to your computer and use it in GitHub Desktop.
Save pdeva/614465c0765cc3eb319b to your computer and use it in GitHub Desktop.
[
{
"schema": {
"dataSource": "dripstat",
"aggregators": [
{
"type": "count",
"name": "count"
},
{
"type": "doubleSum",
"name": "min",
"fieldName": "min"
},
{
"type": "doubleSum",
"name": "max",
"fieldName": "max"
},
{
"type": "longSum",
"name": "callCount",
"fieldName": "callCount"
},
{
"type": "doubleSum",
"name": "totalTime",
"fieldName": "totalTime"
},
{
"type": "doubleSum",
"name": "value",
"fieldName": "value"
}
],
"indexGranularity": "none",
"shardSpec": {
"type": "linear",
"partitionNum": 0
}
},
"config": {
"maxRowsInMemory": 50000,
"intermediatePersistPeriod": "PT10m"
},
"firehose": {
"type": "kafka-0.8",
"consumerProps": {
"zookeeper.connect": "duzk.dripstat.com:2181",
"zookeeper.connection.timeout.ms": "15000",
"zookeeper.session.timeout.ms": "15000",
"zookeeper.synctime.ms": "5000",
"group.id": "druid-dripstat",
"fetch.size": "1048586",
"auto.offset.reset": "largest",
"auto.commit.enable": "false"
},
"feed": "dripstat",
"parser": {
"timestampSpec": {
"column": "timestamp"
},
"data": {
"format": "json"
},
"dimensionExclusions": [
"timestamp"
]
}
},
"plumber": {
"type": "realtime",
"windowPeriod": "PT10m",
"segmentGranularity": "hour",
"basePersistDirectory": "/tmp/realtime/basePersist"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment