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

    {
        "job": {
            "setting": {
                "speed": {
                    "channel":1
                }
            },
            "content": [
                {
                    "reader": {
                        "name": "mysqlreader",
                        "parameter": {
                            "username": "user",
                            "password": "pass",
                            "connection": [
                                {
                                    "querySql": [
                                        "select id,keyword,scount,icount,created_at from `b`.`a`"
                                    ],
                                    "jdbcUrl": [
                                        "jdbc:mysql://127.0.0.1/db"
                                    ]
                                }
                            ]
                        }
                    },
                    "writer": {
                        "name": "elasticsearchwriter",
                        "parameter": {
                            "endpoint": "http://127.0.0.1:9200",
                            "accessId": "1",
                            "accessKey": "1",
                            "index": "tip",
                            "type": "_doc",
                            "cleanup": false,
                            "discovery": false,
                            "batchSize": 1000,
                            "splitter": ",",
                            "dynamic": true,
                            "column" : [
                                {"name": "id", "type": "id"},
                                {"name": "keyword", "type": "text", "analyzer": "888pic_pinyin"},
                                {"name": "scount", "type": "integer"},
                                {"name": "icount", "type": "integer"},
                                {"name": "created_at", "type": "date", "format": "yyyy-MM-dd HH:mm:ss"}
                            ]
                        }
                    }
                }
            ]
        }
    }
  • 相关阅读:
    读写文件print函数操作
    协程相关
    线程池
    多线程条件
    ibm动态测试
    ubuntu 之 搜狗拼音安装
    Linux 安装 出现Could not get lock /var/lib/dpkg/lock
    Sql server
    maven 搭建
    EOS
  • 原文地址:https://www.cnblogs.com/Jeely/p/15242724.html
Copyright © 2011-2022 走看看