Skip to content

Instantly share code, notes, and snippets.

@lastlegion
Created November 4, 2016 03:25
Show Gist options
  • Save lastlegion/e6ef49c0fe7a0d0026b70d5a4b0b05d2 to your computer and use it in GitHub Desktop.
Save lastlegion/e6ef49c0fe7a0d0026b70d5a4b0b05d2 to your computer and use it in GitHub Desktop.
Druid dummy data ingestion spec
{
"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