请问tiup cluster deploy tidb-test v4.0.0-rc ./topology.yaml --user root -i /home/root/.ssh/gcp_rsa命令中,gcp_rsa是怎么来的,必须的吗?我已经生成了ssh可以吗?我是用单个虚拟机上,部署tikv、tidb、pb。都在同一台机器上部署。报错String node doesn’t MapNode是什么意思
-
按照tiup部署文档部署,编辑完yaml
-
编辑好yaml文件 按照文档,只是改了那三个组件的ip为虚拟机本地的ip
# # Global variables are applied to all deployments and as the default value of
# # them if the specific deployment value missing.
global:
user: "tidb"
ssh_port: 22
deploy_dir: "/tidb-deploy"
data_dir: "/tidb-data"
# # Monitored variables are used to all the machine
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
server_configs:
tidb:
log.slow-threshold: 300
binlog.enable: false
binlog.ignore-error: false
tikv:
# server.grpc-concurrency: 4
# raftstore.apply-pool-size: 2
# raftstore.store-pool-size: 2
# rocksdb.max-sub-compactions: 1
# storage.block-cache.capacity: "16GB"
# readpool.unified.max-thread-count: 12
readpool.storage.use-unified-pool: true
readpool.coprocessor.use-unified-pool: true
pd:
schedule.leader-schedule-limit: 4
schedule.region-schedule-limit: 2048
schedule.replica-schedule-limit: 64
replication.enable-placement-rules: true
tiflash:
logger.level: "info"
# pump:
# gc: 7
pd_servers:
- host: 192.168.31.120
tidb_servers:
- host: 192.168.31.120
tikv_servers:
- host: 192.168.31.120
tiflash_servers:
- host: 192.168.31.120
monitoring_servers:
- host: 192.168.31.120
grafana_servers:
- host: 192.168.31.120
alertmanager_servers:
- host: 192.168.31.120
- 执行部署命令 错误信息为
[root@localhost ~]# tiup cluster deploy tidb-test v4.0.0-rc ./topology.yaml --user root -i /home/root/.ssh/gcp_rsa
Starting component `cluster`: /root/.tiup/components/cluster/v0.4.9/cluster deploy tidb-test v4.0.0-rc ./topology.yaml --user root -i /home/root/.ssh/gcp_rsa
Error: Failed to parse topology file ./topology.yaml (utils.topology.parse_failed)
caused by: String node doesn't MapNode
Please check the syntax of your topology file ./topology.yaml and try again.
Error: run `/root/.tiup/components/cluster/v0.4.9/cluster` (wd:/root/.tiup/data/RwZ8yZk) failed: exit status 1