#备份数据库
pg_dump -h localhost -p 7432 -U scm > /tmp/scm_server_db_backup.$(date +%Y%m%d)
#并记住db.properties 中的密码 在/etc/cloudera-scm-server/db.properties中

 

service postgresql status
service postgresql start //启动postgresql
#service postgresql initdb
#service postgresql start

yum -y install cloudera-manager-server-db-2

service cloudera-scm-server-db status
service cloudera-scm-server-db start
#恢复数据
psql -h localhost -p 7432 -U scm </tmp/scm_server_db_backup
#输入新的密码

service cloudera-scm-server status
service cloudera-scm-server start

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2021-08-16
  • 2022-12-23
  • 2021-06-10
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2021-06-23
  • 2021-11-16
  • 2021-10-06
  • 2021-09-11
相关资源
相似解决方案