国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 灵山县| 洛南县| 邵阳市| 儋州市| 龙门县| 白山市| 平顶山市| 雷山县| 江华| 蓝山县| 六盘水市| 三门峡市| 金平| 高邑县| 电白县| 河南省| 柘荣县| 泰安市| 阿拉善右旗| 边坝县| 万安县| 稷山县| 遵义市| 西丰县| 昌宁县| 山东省| 共和县| 泗洪县| 江油市| 肥乡县| 姜堰市| 宾阳县| 桦川县| 防城港市| 萨迦县| 丁青县| 德州市| 金溪县| 桦川县| 会东县| 怀集县|