You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/07/11 09:26:56 UTC
[GitHub] [incubator-druid] Maplejw opened a new issue #8064: how to ingest
data from a kafka topic into multiple datasource by a supervisor?
Maplejw opened a new issue #8064: how to ingest data from a kafka topic into multiple datasource by a supervisor?
URL: https://github.com/apache/incubator-druid/issues/8064
I can ingest data from a kafka topic into multiple datasource by multiple supervisors.
just copy this json file for each supervisor and modify app_id value(10016).
json file for example:
{
"type" :"kafka",
"dataSchema" : {
"dataSource" : "wallpaper-click-10016",
"parser" : {
"type" : "string",
"parseSpec" : {
"format" : "json",
"flattenSpec" : {
"fields" : [
{
"type" : "path",
"name" : "os",
"expr" : "$.property.os"
},
{
"type" : "path",
"name" : "device_id",
"expr" : "$.property.device_id"
},
{
"type" : "path",
"name" : "device_model",
"expr" : "$.property.device_model"
},
{
"type" : "path",
"name" : "carrier",
"expr" : "$.property.carrier"
},
{
"type" : "path",
"name" : "network_type",
"expr" : "$.property.network_type"
},
{
"type" : "path",
"name" : "sys_lang",
"expr" : "$.property.sys_lang"
},
{
"type" : "path",
"name" : "sys_version",
"expr" : "$.property.sys_version"
},
{
"type" : "path",
"name" : "app_version",
"expr" : "$.property.app_version"
},
{
"type" : "path",
"name" : "show_count",
"expr" : "$.data.show_count"
},
{
"type" : "path",
"name" : "click_count",
"expr" : "$.data.click_count"
}
]
},
"timestampSpec" : {
"column" : "timestamp"
},
"dimensionsSpec" : {
"dimensions" : [
"event","app_id","nonce_str","app_version","sys_version","network_type","device_id","device_model","os"
]
}
}
},
"metricsSpec" : [
{
"name" : "count",
"type" : "count"
},
{
"name" : "show_count",
"type" : "longSum",
"fieldName" : "show_count"
},
{
"name" : "click_count",
"type" : "longSum",
"fieldName" : "click_count"
},
{
"name" : "show_user_count",
"type" : "HLLSketchBuild",
"fieldName" : "device_id"
},
{
"name" : "click_user_count",
"type" : "HLLSketchBuild",
"fieldName" : "device_id"
}
],
"transformSpec" : {
"filter" : {
"type" : "and",
"fields" : [
{
"type" : "selector",
"dimension" : "event",
"value" : "click_event"
},
{
"type" : "selector",
"dimension" : "app_id",
"value" : "10016"
}
]
}
}
},
"tuningConfig" : {
"type" : "kafka",
"maxRowsPerSegment" : 5000000,
"workerThreads" : 1,
"logParseExceptions" : true
},
"ioConfig" : {
"topic" : "report-wallpaper",
"taskDuration" : "PT2H",
"consumerProperties" : {
"bootstrap.servers" : "10.0.3.163:9092,10.0.3.164:9092,10.0.3.165:9092",
"group.id" : "wallpaper-click-test",
"client.id" : "wallpaper-click-test"
},
"taskCount" :1,
"replicas" : 1
}
}
if I have app_id(10016,10017), can the Kafka Indexing Service supports two datasource (wallpaper-click-10016,wallpaper-click-10017) by a supervisor,do not need two supervisors?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org