Skip to content

Instantly share code, notes, and snippets.

@l15k4
Created March 2, 2016 14:30
Show Gist options
  • Save l15k4/b8948058356aab1c90ed to your computer and use it in GitHub Desktop.
Save l15k4/b8948058356aab1c90ed to your computer and use it in GitHub Desktop.
{
"type" : "index_hadoop",
"spec" : {
"dataSchema" : {
"dataSource" : "gwiq",
"parser" : {
"type" : "hadoopyString",
"parseSpec" : {
"format" : "json",
"timestampSpec" : {
"column" : "time"
},
"dimensionsSpec" : {
"dimensions" : [ ],
"dimensionExclusions" : [ "time", "uuid", "idx", "price" ],
"spatialDimensions" : [ ]
}
}
},
"metricsSpec" : [ {
"type" : "count",
"name" : "count"
}, {
"type" : "hyperUnique",
"name" : "uuidHll",
"fieldName" : "uuid"
}, {
"type" : "longSum",
"name" : "indexSum",
"fieldName" : "idx"
}, {
"type" : "doubleSum",
"name" : "priceSum",
"fieldName" : "price"
} ],
"granularitySpec" : {
"type" : "uniform",
"segmentGranularity" : "HOUR",
"queryGranularity" : "all",
"intervals" : [ "2015-01-01T00Z/2015-01-04T11Z" ]
}
},
"ioConfig" : {
"type" : "hadoop",
"inputSpec" : {
"type" : "granularity",
"dataGranularity" : "HOUR",
"inputPath" : "/var/data/druid/events",
"filePattern" : ".*",
"pathFormat" : "yyyy/MM/dd/HH"
}
},
"tuningConfig" : {
"type" : "hadoop",
"jobProperties" : { }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment