cryogenian / quasar-datasource-kafka

Quasar connector providing support for Kafka as a data source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quasar-datasource-kafka Discord

Usage

libraryDependencies += "com.precog" %% "quasar-datasource-kafka" % <version>

Configuration

The configuration of the Kafka Datasource has the following JSON format:

{
 "bootstrapServers": Array of Strings "host:port",
 "groupId": String,
 "topics": Array of Strings,
 "decoder": < "RawKey" | "RawValue" >,
  "format": {
    "type": "json" | "separated-values"
    // for "json"
    "precise": Boolean,
    "variant" "array-wrapped" | "line-delimited"
    // for "separated-values", all strings must be one symbol length
    "header": Boolean,
    // The first char of row break
    "row1": String,
    // The second char of row break, empty string if row break has only one symbol
    "row2": String,
    // Column separator (char)
    "record": String,
    "openQuote": String,
    "closeQuote": String,
    "escape": String
  }
  [, "compressionScheme": "gzip"]
}

Example

{
 "bootstrapServers": [ "localhost:9092" ],
 "groupId": "precog",
 "topics": [ "topic" ],
 "decoder": "RawValue",
 "format": {
   "type": "json",
   "variant": "line-delimited",
   "precise": false
 }
}

About

Quasar connector providing support for Kafka as a data source


Languages

Language:Scala 72.1%Language:Shell 26.9%Language:Batchfile 1.0%