Skip to content

Instantly share code, notes, and snippets.

@l15k4
Last active October 7, 2016 14:06
Show Gist options
  • Save l15k4/722a0a7b96efa9e3a6d70ffa291feb50 to your computer and use it in GitHub Desktop.
Save l15k4/722a0a7b96efa9e3a6d70ffa291feb50 to your computer and use it in GitHub Desktop.
{
"type" : "index_hadoop",
"spec" : {
"dataSchema" : {
"dataSource" : "daily-data-source",
"parser" : {
"type" : "hadoopyString",
"parseSpec" : {
"format" : "json",
"timestampSpec" : {
"column" : "timestamp"
},
"dimensionsSpec" : {
"dimensions" : [ ],
"dimensionExclusions" : [ "timestamp", "d_x-hw-redirect", "d_ampce", "d_amprand" ],
"spatialDimensions" : [ ]
}
}
},
"metricsSpec" : [ {
"type" : "count",
"name" : "count"
}, {
"type" : "hyperUnique",
"name" : "gwid",
"fieldName" : "gwid"
} ],
"granularitySpec" : {
"type" : "uniform",
"segmentGranularity" : "DAY",
"queryGranularity" : "DAY",
"intervals" : [ "2016-08-03T00:00:00.000Z/2016-08-04T00:00:00.000Z" ]
}
},
"ioConfig" : {
"type" : "hadoop",
"inputSpec" : {
"type" : "dataSource",
"ingestionSpec" : {
"dataSource" : "hourly-data-source",
"intervals" : [ "2016-08-03T00:00:00.000Z/2016-08-04T00:00:00.000Z" ]
}
}
},
"tuningConfig" : {
"type" : "hadoop",
"combineText" : true,
"useCombiner" : true,
"jobProperties" : { },
"numBackgroundPersistThreads" : 1
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment