Skip to content

Kafka-tranquility error with druid-docker  #59

@thuylevn

Description

@thuylevn

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"
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions