获取错误:无法识别的配置参数" gp_strict_xml_parse"同时将备份恢复到5.x Greenplum DB

时间:2018-06-07 10:58:38

标签: linux greenplum

我目前正在使用4.3.0 GreenPlum版本,现在我想转移到5.8.0 GreenPlum版本,这是最新版本。因为,我的旧设置包含大量数据,我想备份和恢复数据。

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

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

此命令执行成功,我获得了命令中指定的DB的备份。 现在,当我运行命令时,即

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
}

经过一番挖掘,我发现了&#34; gp_strict_xml_parse&#34; GreenPlum 5.x版本中不再使用变量。有没有办法解决这个问题,或者在备份数据时不以任何方式包含这个变量?

2 个答案:

答案 0 :(得分:0)

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

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

(注意:我尝试过,PIVOTAL的文档中也提到了该问题)

谢谢 古鲁普雷特·辛格(Gurupreet Singh)

答案 1 :(得分:0)

在上面的Gurupreet回复中添加:

可以在每个版本的Greenplum 5.x的发行说明中找到详细信息

https://gpdb.docs.pivotal.io/500/relnotes/GPDB_500_README.html

GPDB Release Notes