嗯,这个问题解决了,现在有个新问题,单机多实例需要设置label
tiup ctl:v5.0.1 pd -i -u hadoop-node01:2379
Starting component ctl
: /root/.tiup/components/ctl/v5.0.1/ctl pd -i -u hadoop-node01:2379
» label
[
{
“key”: “host”,
“value”: “192.168.1.231”
},
{
“key”: “host”,
“value”: “192.168.1.230”
},
{
“key”: “host”,
“value”: “192.168.1.229”
}
]
» config show
{
“replication”: {
“enable-placement-rules”: “true”,
“isolation-level”: “”,
“location-labels”: “”,
“max-replicas”: 3,
“strictly-match-label”: “true”
},
“schedule”: {
“enable-cross-table-merge”: “true”,
“enable-debug-metrics”: “false”,
“enable-joint-consensus”: “true”,
“enable-location-replacement”: “true”,
“enable-make-up-replica”: “true”,
“enable-one-way-merge”: “false”,
“enable-remove-down-replica”: “true”,
“enable-remove-extra-replica”: “true”,
“enable-replace-offline-replica”: “true”,
“high-space-ratio”: 0.7,
“hot-region-cache-hits-threshold”: 3,
“hot-region-schedule-limit”: 4,
“leader-schedule-limit”: 4,
“leader-schedule-policy”: “count”,
“low-space-ratio”: 0.8,
“max-merge-region-keys”: 200000,
“max-merge-region-size”: 20,
“max-pending-peer-count”: 16,
“max-snapshot-count”: 3,
“max-store-down-time”: “30m0s”,
“merge-schedule-limit”: 8,
“patrol-region-interval”: “100ms”,
“region-schedule-limit”: 2048,
“region-score-formula-version”: “v2”,
“replica-schedule-limit”: 64,
“scheduler-max-waiting-operator”: 5,
“split-merge-interval”: “1h0m0s”,
“store-limit-mode”: “manual”,
“tolerant-size-ratio”: 0
}
}
» config set location-labels “host”
Failed to set config: [400] “cannot to update replication config, the default rules do not consistent with replication config, please update rule instead”
但是最后这条命令报错了,无法更改location-labels