zoukankan      html  css  js  c++  java
  • testmysqltoelasticsearch75.json 未测试,仅参考

    {
        "job": {
            "setting": {
                "speed": {
                    "channel": 32,
                    "batchSize":4096
                }
            },
            "content": [
                {
                    "reader": {
                        "name": "mysqlreader",
                        "parameter": {
                            "splitPk": "LOTID",
                            "connection": [
                                {
                                    "table": [
                                        "LOT"
                                    ],
                                    "jdbcUrl": [
                                        "jdbc:mysql://xxx:4000/xxx?useUnicode=true&characterEncoding=utf-8"
                                    ]
                                }
                            ],
                            "where": "LOTID >= 200000000 and LOTID < 250000000",
                            "username": "xxx",
                            "password": "xxx",
                            "column": [
                                "LOTID",
                                "LOTNO",
                                "DATE_FORMAT(CREATEDDATE,'%Y-%m-%d %H:%i:%S') as CREATEDDATE"
                            ]
                        }
                    },
                    "writer": {
                        "name": "elasticsearchwriter",
                        "parameter": {
                            "endpoint": "http://xxx:9200",
                            "index": "lot",
                            "type":"_doc",
                            "settings": {"index" :{"number_of_shards": 3, "number_of_replicas": 1, "refresh_interval": "120s"}},
                            "discovery": false,
                            "dynamic": true,
                            "column": [
                              { "name": "LOTID", "type": "keyword"},
                              { "name": "LOTNO","type": "keyword" },
                              { "name": "CREATEDDATE","type": "date" }
                            ]
                        }
                    }
                }
            ]
        }
    }
  • 相关阅读:
    mysql 常用语句
    easyui 时间格式化
    sql学习
    Java基础知识
    windows部署环境(laravel项目)
    gradle spring boot构建项目
    linux mysql操作
    composer
    linux常用命令
    mongodb使用手册
  • 原文地址:https://www.cnblogs.com/Jeely/p/15242734.html
Copyright © 2011-2022 走看看