mirror of
https://github.com/apache/druid.git
synced 2025-02-09 11:34:54 +00:00
* Update Kafka ingestion tutorial * Update tutorial-kafka.md Updated location of sample data file * Added sample data file * Update tutorial-kafka.md * Add sample data file * Update tutorial-kafka.md Updated sample file location in curl commands * Update and reuploading sample data files * Updated spelling file * Delete .spelling * Added spelling file * Update docs/tutorials/tutorial-kafka.md Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com> * Update docs/tutorials/tutorial-kafka.md Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com> * Updated after review * Update tutorial-kafka.md * Updated * Update tutorial-kafka.md * Update tutorial-kafka.md * Update tutorial-kafka.md * Updated sample data file and command * Add files via upload * Delete kttm-nested-data.json.tgz * Delete kttm-nested-data.json.tgz * Add files via upload * Update tutorial-kafka.md Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
66 lines
1.3 KiB
JSON
66 lines
1.3 KiB
JSON
{
|
|
"type": "kafka",
|
|
"spec": {
|
|
"ioConfig": {
|
|
"type": "kafka",
|
|
"consumerProperties": {
|
|
"bootstrap.servers": "localhost:9092"
|
|
},
|
|
"topic": "kttm",
|
|
"inputFormat": {
|
|
"type": "json"
|
|
},
|
|
"useEarliestOffset": true
|
|
},
|
|
"tuningConfig": {
|
|
"type": "kafka"
|
|
},
|
|
"dataSchema": {
|
|
"dataSource": "kttm-kafka-supervisor-api",
|
|
"timestampSpec": {
|
|
"column": "timestamp",
|
|
"format": "iso"
|
|
},
|
|
"dimensionsSpec": {
|
|
"dimensions": [
|
|
"session",
|
|
"number",
|
|
"client_ip",
|
|
"language",
|
|
"adblock_list",
|
|
"app_version",
|
|
"path",
|
|
"loaded_image",
|
|
"referrer",
|
|
"referrer_host",
|
|
"server_ip",
|
|
"screen",
|
|
"window",
|
|
{
|
|
"type": "long",
|
|
"name": "session_length"
|
|
},
|
|
"timezone",
|
|
"timezone_offset",
|
|
{
|
|
"type": "json",
|
|
"name": "event"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"name": "agent"
|
|
},
|
|
{
|
|
"type": "json",
|
|
"name": "geo_ip"
|
|
}
|
|
]
|
|
},
|
|
"granularitySpec": {
|
|
"queryGranularity": "none",
|
|
"rollup": false,
|
|
"segmentGranularity": "day"
|
|
}
|
|
}
|
|
}
|
|
} |