gpt4 book ai didi

linux - 获取错误 : unrecognized configuration parameter "gp_strict_xml_parse" while restoring backup to 5. x Greenplum DB

转载 作者:太空宇宙 更新时间:2023-11-04 12:05:56 29 4
gpt4 key购买 nike

我目前使用的是 4.3.0 GreenPlum 版本,现在我想升级到最新的 5.8.0 GreenPlum 版本。因为,我的旧设置包含很多数据,我想备份和恢复数据。

为了备份,我在我的 4.3.0 Greenplum 机器上运行了以下命令:

gp_dump --gp-d <Backup Location> <DB_Name>

这条命令执行成功,我得到了命令中指定的数据库的备份。现在,当我运行命令时,即

gp_restore --gp-d <Backup Location> --gp-k <Timestmap Key generated while creating backup> -d <DB_Name>

要在我的 5.8.0 Greenplum 上恢复备份,我收到以下错误:

20180607:10:28:12|gp_restore-[INFO]:-Analyzed command line options.
20180607:10:28:12|gp_restore-[INFO]:-Connecting to master segment on host localhost port 5432 database dadb.
20180607:10:28:12|gp_restore-[INFO]:-Reading Greenplum Database configuration info from master segment database.
20180607:10:28:12|gp_restore-[INFO]:-Preparing to restore the following segments:
20180607:10:28:12|gp_restore-[INFO]:-Segment 0 (dbid 2)
20180607:10:28:12|gp_restore-[INFO]:-Master (dbid 1)
20180607:10:28:12|gp_restore-[INFO]:-Starting to restore the master database.
20180607:10:28:12|gp_restore-[INFO]:-Creating thread to restore master database: host sjcinf6801vmw749 port 5432 database dadb
20180607:10:28:12|gp_restore-[INFO]:-Listening for messages from dbid 1 server (source) for dbid 1 restore
20180607:10:28:12|gp_restore-[INFO]:-Successfully launched Greenplum Database restore on dbid 1 to restore dbid 1
20180607:10:28:14|gp_restore-[INFO]:-restore started for source dbid 1, target dbid 1 on host sjcinf6801vmw749
20180607:10:28:14|gp_restore-[ERROR]:-restore failed for source dbid 1, target dbid 1 on host sjcinf6801vmw749
20180607:10:28:14|gp_restore-[ERROR]:-see error report for details
20180607:10:28:14|gp_restore-[INFO]:-Report results also written to ./gp_restore_20180607102011.rpt.

Greenplum Database Restore Report
Timestamp Key: 20180607102011
gp_restore Command Line: --gp-d /usr/ab/ --gp-k 20180607102011 -d dadb
Pass through Command Line Options: None
Compression Program: None

Individual Results
Restore of database "dadb" on Master database: Failed with error:
{ERROR: unrecognized configuration parameter "gp_strict_xml_parse"
cat: write error: Broken pipe
20180607:10:28:14|gp_restore_agent-[ERROR]:-psql finished abnormally with return code 3.
20180607:10:28:14|gp_restore_agent-[ERROR]:-Finished with errors
}

经过一番挖掘,我发现“gp_strict_xml_parse”变量在 GreenPlum 5.x 版本中不再使用。有什么方法可以解决这个问题,或者有什么方法可以在备份数据时不包含这个变量吗?

最佳答案

Greenplum 版本 5.x.x.x 没有 gp_strict_xml_parse 参数。

在😎

在 5.x 及更高版本中恢复时(从 4.3.x 及更高版本创建的备份)您可以在恢复时忽略此错误/警告。因为这些警告不会影响恢复过程。

(注:我试过了,PIVOTAL的文档中也有提到)

谢谢古鲁普雷特·辛格

关于linux - 获取错误 : unrecognized configuration parameter "gp_strict_xml_parse" while restoring backup to 5. x Greenplum DB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50739497/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com