ITPub博客

首页 > 数据库 > > Greenplum修改hostname

Greenplum修改hostname

作者:AI中国 时间:2023-03-13 15:28:45 0 删除 编辑
# 切换用户
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

参考:【GREENPLUM】集群更换了HOSTNAME,GP怎么更改配置



本文来源:https://blog.csdn.net/wzy0623/article/details/127509305

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31560284/viewspace-3142764/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-12-23

  • 博文量
    212
  • 访问量
    2464