国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發(fā)設(shè)計 > 正文

使用elasticsearch-jdbc做增量同步

2019-11-08 20:39:27
字體:
供稿:網(wǎng)友

https://github.com/jPRante/elasticsearch-jdbc/

# elastic_search_learninghow to use elastic search# 安裝elasticserach-jdbc做增量同步wget http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/<version>/elasticsearch-jdbc-<version>-dist.zip* version=2.3.4.0unzip elasticsearch-jdbc-<version>-dist.zipcd elasticsearch-jdbc-<version>cd bintest.sh:bin=/Users/jesusslim/Downloads/elasticsearch-jdbc-2.3.4.0/binlib=/Users/jesusslim/Downloads/elasticsearch-jdbc-2.3.4.0/libecho '{    "type" : "jdbc",    "statefile" : "statefile.json",    "jdbc": {        "url" : "jdbc:MySQL://ip:port/db_name?user=test&passWord=password",        "user" : "test",        "password" : "password",        "type" : "allocate_record",        "index": "crm",        "schedule" : "0 * * * * ?",        "metrics" : {            "enabled" : true        },               "sql" : [            {                "statement" : "select id as _id,id,last_remark_time,last_remark from ebk_allocate_record where adv_group = 1 and last_remark_time > UNIX_TIMESTAMP(?)",                "parameter" : [ "$metrics.lastexecutionstart" ]            }        ]          }}' | java /       -cp "${lib}/*" /       -Dlog4j.configurationFile=${bin}/log4j2.xml /       org.xbib.tools.Runner /       org.xbib.tools.JDBCImporter

需要java v1.8

其他配置如外網(wǎng)訪問等需配置elasticsearch/config/的yml       


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 新晃| 喜德县| 长武县| 姚安县| 天台县| 德清县| 桦川县| 福建省| 台南市| 鄂托克旗| 玉树县| 横峰县| 玉溪市| 策勒县| 温宿县| 江城| 贵定县| 莱芜市| 东宁县| 金昌市| 开平市| 郸城县| 五河县| 留坝县| 定陶县| 新营市| 仁化县| 汉阴县| 昔阳县| 全州县| 同仁县| 克拉玛依市| 武冈市| 肇源县| 昭苏县| 得荣县| 安平县| 金溪县| 会东县| 白银市| 嘉善县|