我正在按照官方安装指南在台式计算机上安装 greenplum 数据库。当我执行时
# gpseginstall -f hostfile_exkeys -u gpadmin -p P@$$word
它要求我提供集群访问密码:
[root@sm403-08 greenplum-db-4.2.1.0]# gpseginstall -f hostfile_exkeys -uyang -par0306
20120506:05:59:33:012887 gpseginstall:sm403-08:root-[INFO]:-Installation Info:
link_name None
binary_path /usr/local/greenplum-db-4.2.1.0
binary_dir_location /usr/local
binary_dir_name greenplum-db-4.2.1.0
20120506:05:59:33:012887 gpseginstall:sm403-08:root-[INFO]:-check cluster password access
*** Enter password for localhost-2:
*** Enter password for localhost-2:
*** Enter password for localhost-2:
*** Enter password for localhost-2:
*** Enter password for localhost-2:
这就是我的 hostfile_exkeys 文件的样子:
localhost
localhost-1
localhost-2
因为我只有一台机器。
网络上的类似帖子 ( http://www.topix.com/forum/com/greenplum/TSDQHMJ6M7I9D0A44 ) 说:
“我遇到了同样的错误,我发现这是因为我将 sshd 设置为拒绝 root 登录。您必须编辑 sshd 配置并允许 root 登录才能使 gpseginstall 正常工作。希望这会有所帮助!”嗯>
但我尝试修改我的/etc/ssh/sshd_config 文件以使其允许 root 登录:
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
并重新启动 sshd:
Stopping sshd: [FAILED]
Starting sshd: [ OK ]
但没有任何作用; gpseginstall 程序仍然要求输入密码。
我已经尝试了所有我能想到的密码,root、gpadmin、我自己的用户密码,但都不起作用。我需要做什么才能让它发挥作用?
更新:看来问题在于在单个节点上安装Greenplum社区版。有没有人有这方面的经验?
提前致谢!
最佳答案
看来我正在单个节点上安装Greenplum数据库,因此不必执行gpseginstall步骤。这用于在主主机的所有网段上安装 Greenplum。
关于Greenplum gpseginstall 要求 "cluster password access",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10471220/