Created
November 4, 2016 03:25
-
-
Save lastlegion/e6ef49c0fe7a0d0026b70d5a4b0b05d2 to your computer and use it in GitHub Desktop.
Druid dummy data ingestion spec
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_hadoop", | |
"spec" : { | |
"ioConfig" : { | |
"type" : "hadoop", | |
"inputSpec" : { | |
"type" : "static", | |
"paths" : "quickstart/dummy.json" | |
} | |
}, | |
"dataSchema" : { | |
"dataSource" : "dummyx", | |
"granularitySpec" : { | |
"type" : "uniform", | |
"segmentGranularity" : "day", | |
"queryGranularity" : "none", | |
"intervals" : ["2014-01-01/2016-10-13"] | |
}, | |
"parser" : { | |
"type" : "string", | |
"parseSpec" : { | |
"format" : "json", | |
"dimensionsSpec" : { | |
"dimensions" : [ | |
"isActive", | |
"age", | |
"eyeColor" | |
] | |
}, | |
"timestampSpec" : { | |
"format" : "auto", | |
"column" : "timestamp" | |
} | |
} | |
}, | |
"metricsSpec" : [ | |
{ | |
"name" : "count", | |
"type" : "count" | |
} | |
] | |
}, | |
"tuningConfig" : { | |
"type" : "hadoop", | |
"partitionsSpec" : { | |
"type" : "hashed", | |
"targetPartitionSize" : 5000000 | |
}, | |
"jobProperties" : {} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment