tiup

[tidb@tidb1 ~]$ tiup cluster deploy tidb-test v4.0.0 ./topology.yaml --user tidb
Starting component cluster: /home/tidb/.tiup/components/cluster/v1.2.3/tiup-cluster deploy tidb-test v4.0.0 ./topology.yaml --user tidb
Please confirm your topology:
Cluster type: tidb
Cluster name: tidb-test
Cluster version: v4.0.0
Type Host Ports OS/Arch Directories


pd ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.50 2379/2380 linux/x86_64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
tikv ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.50 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tikv ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.126 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tikv ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.37 20160/20180 linux/x86_64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
tidb ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.126 4000/10080 linux/x86_64 /tidb-deploy/tidb-4000
prometheus ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.50 9090 linux/x86_64 /tidb-deploy/prometheus-9090,/tidb-data/prometheus-9090
grafana ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.50 3000 linux/x86_64 /tidb-deploy/grafana-3000
alertmanager ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.50 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 ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.50:22 … Done
  • Prepare ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.126:22 … Error
  • Prepare ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.37:22 … Error
    Error: Failed to initialize TiDB environment on remote host ‘![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.126’ (task.env_init.failed)
    caused by: Failed to create ‘~/.ssh’ directory for user ‘tidb’
    caused by: Failed to execute command over SSH for ‘tidb@10.203.2.126:22’
    caused by: Process exited with status 1

Verbose debug logs has been written to /home/tidb/logs/tiup-cluster-debug-2020-11-04-09-31-18.log.

Command output on remote host ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.126:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
Error: run /home/tidb/.tiup/components/cluster/v1.2.3/tiup-cluster (wd:/home/tidb/.tiup/data/SFKd9Hc) failed: exit status 1
[tidb@tidb1 ~]$
[tidb@tidb1 ~]$ ssh ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.126 date
Wed Nov 4 09:37:17 CST 2020
[tidb@tidb1 ~]$ ssh ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.50 date
Wed Nov 4 09:37:25 CST 2020
[tidb@tidb1 ~]$ ssh ![](file:///C:\Users\YJ\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)10.203.2.37 date
Wed Nov 4 09:37:32 CST 2020

TiUP 常见问题处理方法可以参考下面的链接:

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。