沧月断虹
(沧月断虹)
1
[root@localhost home]# tiup cluster deploy tidb-test v4.0.0 ./topo.yaml --user root
Starting component cluster
: deploy tidb-test v4.0.0 ./topo.yaml --user root
Error: Failed to parse topology file ./topo.yaml (topology.parse_failed)
caused by: yaml: line 2: did not find expected key
Please check the syntax of your topology file ./topo.yaml and try again.
Error: run `` (wd:/root/.tiup/data/S4xrE6S) failed: exit status 1
在执行创建并启动集群时报错, 配置模板只更改了IP,更改为了本机的192.168.1.163, tidb用户和root用户都已做免密登录
沧月断虹
(沧月断虹)
4
按照快速上手指南中的配制模板更改了ip
# Global variables are applied to all deployments and used as the default value of
# # the deployments if a specific deployment value is missing.
global:
user: “tidb”
ssh_port: 22
deploy_dir: “/tidb-deploy”
data_dir: “/tidb-data”
# # Monitored variables are applied to all the machines.
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
server_configs:
tidb:
log.slow-threshold: 300
tikv:
readpool.storage.use-unified-pool: false
readpool.coprocessor.use-unified-pool: true
pd:
replication.enable-placement-rules: true
tiflash:
logger.level: "info"
pd_servers:
- host: 192.168.1.163
tidb_servers:
- host: 192.168.1.163
tikv_servers:
- host: 192.168.1.163
port: 20160
status_port: 20180
- host: 192.168.1.163
port: 20161
status_port: 20181
- host: 192.168.1.163
port: 20162
status_port: 20182
tiflash_servers:
- host: 192.168.1.163
monitoring_servers:
- host: 192.168.1.163
grafana_servers:
- host: 192.168.1.163
小王同学
5
您好,可以检查下您的 yaml 文件,这个是指 2 附近有问题,导致 yaml 语法解析不了。您这边上传的看不太出来。可以使用 YAML、YML在线编辑器(格式化校验)-BeJSON.com 自行检查下。