# # 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"
pd_servers:
- host: 192.168.113.60
tidb_servers:
- host: 192.168.113.60
tikv_servers:
- host: 192.168.113.61
- host: 192.168.113.62
- host: 192.168.113.63
monitoring_servers:
- host: 192.168.113.60
grafana_servers:
- host: 192.168.113.60
alertmanager_servers:
- host: 192.168.113.60
错误日志:
[tidb@pingcap00 ~]$ tiup cluster deploy tidb-test-1 v4.0.0 ./topology.yaml --user tidb
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.3.0/tiup-cluster deploy tidb-test-1 v4.0.0 ./topology.yaml --user tidb
Please confirm your topology:
Cluster type: tidb
Cluster name: tidb-test-1
Cluster version: v4.0.0
Type Host Ports OS/Arch Directories
---- ---- ----- ------- -----------
pd 192.168.113.60 2379/2380 linux/x86_64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
tikv 192.168.113.61 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tikv 192.168.113.62 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tikv 192.168.113.63 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tidb 192.168.113.60 4000/10080 linux/x86_64 /tidb-deploy/tidb-4000
prometheus 192.168.113.60 9090 linux/x86_64 /tidb-deploy/prometheus-9090,/tidb-data/prometheus-9090
grafana 192.168.113.60 3000 linux/x86_64 /tidb-deploy/grafana-3000
alertmanager 192.168.113.60 9093/9094 linux/x86_64 /tidb-deploy/alertmanager-9093,/tidb-data/alertmanager-9093
Attention:
1. If the topology is not what you expected, check your yaml file.
2. Please confirm there is no port/directory conflicts in same host.
Do you want to continue? [y/N]: y
+ Generate SSH keys ... Done
+ Download TiDB components
- Download pd:v4.0.0 (linux/amd64) ... Done
- Download tikv:v4.0.0 (linux/amd64) ... Done
- Download tidb:v4.0.0 (linux/amd64) ... Done
- Download prometheus:v4.0.0 (linux/amd64) ... Done
- Download grafana:v4.0.0 (linux/amd64) ... Done
- Download alertmanager:v0.17.0 (linux/amd64) ... Done
- Download node_exporter:v0.17.0 (linux/amd64) ... Done
- Download blackbox_exporter:v0.12.0 (linux/amd64) ... Done
+ Initialize target host environments
- Prepare 192.168.113.60:22 ... Error
- Prepare 192.168.113.61:22 ... Done
- Prepare 192.168.113.62:22 ... Done
- Prepare 192.168.113.63:22 ... Done
Error: Failed to initialize TiDB environment on remote host '192.168.113.60' (task.env_init.failed)
caused by: Failed to create '~/.ssh' directory for user 'tidb'
caused by: Failed to execute command over SSH for 'tidb@192.168.113.60:22'
caused by: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Verbose debug logs has been written to /home/tidb/.tiup/logs/tiup-cluster-debug-2020-12-21-12-07-35.log.
Error: run `/home/tidb/.tiup/components/cluster/v1.3.0/tiup-cluster` (wd:/home/tidb/.tiup/data/SJm5Ip6) failed: exit status 1
其他信息:
total 20
-rw-r--r--. 1 tidb tidb 231 May 22 2018 .bashrc
-rw-r--r--. 1 tidb tidb 18 May 22 2018 .bash_logout
drwxr-xr-x. 3 root root 18 Dec 21 10:38 ..
drwxrw----. 3 tidb tidb 19 Dec 21 11:04 .pki
-rw-r--r--. 1 tidb tidb 233 Dec 21 11:04 .bash_profile
-rw-rw-r--. 1 tidb tidb 545 Dec 21 11:09 topology.yaml
drwxrwxr-x. 9 tidb tidb 125 Dec 21 11:10 .tiup
drwxr--r--. 2 tidb tidb 80 Dec 21 11:57 .ssh
-rw-------. 1 tidb tidb 611 Dec 21 12:01 .bash_history
drwx------. 5 tidb tidb 141 Dec 21 12:07 .
[tidb@pingcap00 ~]$ ssh 192.168.113.62
Last login: Mon Dec 21 12:07:32 2020
[tidb@pingcap02 ~]$ exit
logout
Connection to 192.168.113.62 closed.
[tidb@pingcap00 ~]$ sudo -su root
[root@pingcap00 tidb]# exit
exit