0
点赞
收藏
分享

微信扫一扫

Greenplum修改hostname

切换用户

su - gpadmin

关闭GP Master

gpstop -M fast

运维模式启动GP Master

gpstart -m

进入GP 命令行,运行命令

PGOPTIONS='-c gp_session_role=utility' psql -U gpadmin postgres

set allow_system_table_mods='TRUE';

update gp_segment_configuration set hostname='更改之后的主机名' where address='原来的主机名';

update gp_segment_configuration set address='更改之后的主机名' where hostname='更改之后的主机名';

\q

关闭GP Master

gpstop -m

启动GP

gpstart -a

举报

相关推荐

0 条评论