你好,我正在分布式环境中工作并安装 Hadoop,但是当我这样做时出现错误
fatal: [server2.impetus.co.in] => to use the 'ssh' connection type with passwords, you must install the sshpass program
它说要安装 sshpass 所以我安装
[root@server2 mapr]# yum install sshpass
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* epel: mirrors.ustc.edu.cn
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Package sshpass-1.05-1.el6.x86_64 already installed and latest version
Nothing to do
它说已经安装了,但是当我运行 sshpass
[root@server2 mapr]# sshpass
bash: sshpass: command not found
当我进一步观察时,我发现它正在工作sshpass1
为什么它会这样运行以及我如何运行 sshpass 命令。
答案1
它起作用了我只是创建了 sshpass1 的软链接
cd /usr/bin
ln -s sshpass1 sshpass