Skip to content

Latest commit

 

History

History
73 lines (66 loc) · 1.57 KB

README.md

File metadata and controls

73 lines (66 loc) · 1.57 KB

Kafka Writer Plugin for DataX

Author: Linh Doan

Contributor: Dien Vo

Gatsby is released under the MIT license.

Introduction

DataX Reference

https://github.com/alibaba/DataX

Use case

DataX only support parse list of User defined type to string so it can not iterate the list and migrate to the target table. In this case, we highly recommend that using queue like kafka to handle logic in application layer

Job example

{
  "job": {
    "content": [
      {
        "reader": {
          "name": "cassandrareader",
          "parameter": {
            "host": "<cassandra-host>",
            "port": 9042,
            "username": "<username>",
            "password": "<pass>",
            "consitancyLevel": "ONE",
            "useSSL": false,
            "keyspace": "<keyspace>",
            "table": "<your_table>",
            "column": [
              "col1",
              "col2",
              "col3"
            ]
          }
        },
        "writer": {
          "name": "kafkawriter",
          "parameter": {
            "isSilence": true,
            "topic": "<your_topic>",
            "brokers": "<your_broker_addresses>",
            "column": [
              "col1",
              "col2",
              "col3"
            ]
          }
        }
      }
    ],
    "setting": {
      "speed": {
        "channel": "10"
      }
    }
  }
}