问题:安装greenplum集群,执行gpssh-exkeys -f 报错
环境:CentOS7.8 端口是10022
问题分析,主要是gpssh-exkeys默认是22端口,将其中的一些命令改加上端口
问题截图:
处理办法:
打开gpssh-exkeys脚本,
修改一:
errfile = os.path.join(tempDir, 'sshcheck.err')
cmd = 'ssh -p 10022 -o "BatchMode=yes" -o "StrictHostKeyChecking=no" %s true 2>%s' % (hostname, errfile)
修改二:
for remoteHost in GV.allHosts:
cmd = ['ssh','-p','10022','[email protected]'+ remoteHost.host(), '-o', 'Bat