canal 全量同步 MySQL 到 Elasticsearch 时量数据 etl 异常
配置文档:https://www.cnblogs.com/mijino/p/14874765.html
执行全量同步 curl -X POST http://localhost:8081/etl/es7/student.yml
出现如下错误:
{"succeeded":false,"resultMessage":"导入ES 数据:2 条","errorMessage":"student etl failed! ==>全量数据 etl 异常 ElasticsearchException[Elasticsearch exception [type=cluster_block_exception, reason=index [student] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];]]"}%
解决方法
PUT _cluster/settings
{
"transient": {
"cluster.routing.allocation.disk.watermark.low": "100gb",
"cluster.routing.allocation.disk.watermark.high": "50gb",
"cluster.routing.allocation.disk.watermark.flood_stage": "10gb",
"cluster.info.update.interval": "1m"
}
}
PUT /_cluster/settings
{
"transient": {
"cluster.routing.allocation.disk.threshold_enabled": false
}
}
PUT _all/_settings
{
"index.blocks.read_only_allow_delete": null
}