In JDBC River how to stop housekeeping not to delete records?

泪湿孤枕 提交于 2019-12-04 05:54:32

问题


When JDBC River does the polling, housekeeping jobs removes chunk of records.

Somebody know solutions for it. I want to stop records deletion.

For more reference :- https://github.com/jprante/elasticsearch-river-jdbc/issues/61


回答1:


The housekeeping job is stop if versioning is disabled by versioning: false in the JDBC river parameters, which is the default.

{
    "jdbc" :{
    "strategy" : "oneshot",
    "driver" : null,
    "url" : null,
    "user" : null,
    "password" : null,
    "sql" : null,
    "sqlparams" : null,
    "poll" : "1h",
    "rounding" : null,
    "scale" : 0,
    "autocommit" : false,
    "fetchsize" : 10,
    "max_rows" : 0,
    "max_retries" : 3,
    "max_retries_wait" : "10s",
    "locale" : Locale.getDefault().toLanguageTag(),
    "digesting" : true,
    "acksql" : null,
    "acksqlparams" : null          
    },
    "index" : {
    "index" : "jdbc",
    "type" : "jdbc",
    "bulk_size" : 100,
    "max_bulk_requests" : 30,
    "index_settings" : null,
    "type_mapping" : null,
    "versioning" : false,  
    "acknowledge" : false,
    }
}

"versioning": true if versioning should be used in the Elasticsearch indexed documents

By Reference :- https://github.com/jprante/elasticsearch-river-jdbc/issues/133#issuecomment-30148180



来源:https://stackoverflow.com/questions/19976566/in-jdbc-river-how-to-stop-housekeeping-not-to-delete-records

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!