ubuntu 18.04
TiDB 4.0.4
因为原集群没有安装TiFlash组件,这次我想扩容2台TiFlash,scale-out.yaml内如如下:
tiflash_servers:
- host: 192.168.16.99
- host: 192.168.16.100
99/100允许root登录,在192.168.16.101机器上,预先ssh 99/100,下载了公钥,然后执行:
tiup cluster scale-out tidb_test scale-out.yaml -p
输入登录99/100的密码后,显示如下错误提示:
- Download tiflash:v4.0.4 (linux/amd64) ... Done
+ [ Serial ] - RootSSH: user=juzix, host=192.168.16.99, port=22
+ [ Serial ] - EnvInit: user=tidb, host=192.168.16.99
Error: Failed to initialize TiDB environment on remote host '192.168.16.99' (task.env_init.failed)
caused by: Failed to create new system user 'tidb' on remote host
caused by: Failed to execute command over SSH for 'juzix@192.168.16.99:22'
caused by: Process exited with status 1
Verbose debug logs has been written to /home/juzix/logs/tiup-cluster-debug-2020-08-24-03-56-31.log.
Command output on remote host 192.168.16.99:
sudo: no tty present and no askpass program specified
Error: run `/home/juzix/.tiup/components/cluster/v1.0.9/tiup-cluster` (wd:/home/juzix/.tiup/data/S8YDy9A) failed: exit status 1
请问,是不是因为操作系统ubuntu的创建用户命令不同导致?改如何完成我的扩容?
谢谢!