Created
February 16, 2016 16:33
-
-
Save l15k4/f4737794f032201f88d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type" : "index", | |
"spec" : { | |
"dataSchema" : { | |
"dataSource" : "gwiq", | |
"parser" : { | |
"type" : "string", | |
"parseSpec" : { | |
"format" : "json", | |
"timestampSpec" : { | |
"column" : "time", | |
"format" : "auto" | |
}, | |
"dimensionsSpec" : { | |
"dimensions": [], | |
"dimensionExclusions" : ["time", "gwid", "price"], | |
"spatialDimensions" : [] | |
} | |
} | |
}, | |
"metricsSpec" : [ | |
{ | |
"type" : "count", | |
"name" : "count" | |
}, | |
{ | |
"type": "hyperUnique", | |
"fieldName": "gwid", | |
"name": "gwidHll" | |
}, | |
{ | |
"type" : "doubleSum", | |
"name" : "priceSum", | |
"fieldName" : "price" | |
} | |
], | |
"granularitySpec" : { | |
"type" : "uniform", | |
"segmentGranularity" : "HOUR", | |
"queryGranularity" : "all", | |
"intervals" : [ "2015-01-01/2015-01-02" ] | |
} | |
}, | |
"ioConfig" : { | |
"type" : "index", | |
"firehose" : { | |
"type" : "local", | |
"baseDir" : "/var/data/druid/events", | |
"filter" : "*.json" | |
} | |
}, | |
"tuningConfig" : { | |
"type" : "index", | |
"targetPartitionSize" : 5000000, | |
"rowFlushBoundary" : 500000 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment