-
Notifications
You must be signed in to change notification settings - Fork 156
Description
curl -X 'POST' -H 'Content-Type: application/json' -d @Druid_Ingestion/kafka-tranquility-index.json http://localhost:8081/druid/indexer/v1/task
{"error":"Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'type' that is to contain type id (for class io.druid.indexing.common.task.Task)\n at [Source: HttpInputOverHTTP@2fec7265[c=1475,q=1,[0]=EOF,s=STREAM]; line: 1, column: 1475]"}
{
"dataSources" : {
"metrics-kafka" : {
"spec" : {
"dataSchema" : {
"dataSource" : "metrics-kafka",
"parser" : {
"type" : "string",
"parseSpec" : {
"timestampSpec" : {
"column" : "submit_date",
"format" : "auto"
},
"dimensionsSpec" : {
"dimensions" : [ "request_type", "origin", "description" ],
"dimensionExclusions" : [ ]
},
"format" : "json"
}
},
"granularitySpec" : {
"type" : "uniform",
"segmentGranularity" : "hour",
"queryGranularity" : "none"
},
"metricsSpec" : [
{
"type" : "count",
"name" : "count"
}
]
},
"ioConfig" : {
"type" : "realtime"
},
"tuningConfig" : {
"type" : "realtime",
"maxRowsInMemory" : "100000",
"intermediatePersistPeriod" : "PT10M",
"windowPeriod" : "PT10M"
}
},
"properties" : {
"task.partitions" : "1",
"task.replicants" : "1",
"topicPattern" : "NiFi_Kafka_test_1"
}
}
},
"properties" : {
"zookeeper.connect" : "172.29.242.173:8081",
"commit.periodMillis" : "15000",
"consumer.numThreads" : "2",
"kafka.zookeeper.connect" : "172.29.242.173:8081",
"kafka.group.id" : "tranquility-kafka"
}
}