Skip to content

linhdmn/kafka-writer-datax-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

DataX Plugin Kafka Writer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages