原 使用gpmon登陆gpcc报错Error: User gpmon is not allowed to login Command Center.
现象
使用gpmon用户登陆gpcc时,报错:Error: User gpmon is not allowed to login Command Center.
分析
发现mdw上master实例的pg_hba.conf配置有问题:
1 2 3 4 5 6 7 8 9 10 11 12 | [gpadmin@mdw gpseg-1]$ more pg_hba.conf | grep gpmon local gpperfmon gpmon trust host all gpmon 127.0.0.1/28 trust host all gpmon ::1/128 trust host all gpmon samenet trust -- 应该修改为md5,否则不能登陆,尤其是 local gpperfmon gpmon 行 [gpadmin@mdw gpseg-1]$ more pg_hba.conf | grep gpmon local gpperfmon gpmon md5 host all gpmon 127.0.0.1/28 md5 host all gpmon ::1/128 md5 host all gpmon samenet md5 |