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

标签 linux greenplum

我目前使用的是 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/

相关文章:

Linux/shell - 从一个目录中删除所有(子)子文件夹,一个除外

c# - Process.Start() 创建的进程在父应用程序关闭时终止

c - 为什么这个用于列出目录的 C 代码不起作用?

linux - 配置 Vagrant 时在 sudo 中设置环境变量

postgresql - 返回记录时,需要在registerOutParameter()中设置什么数据类型

scala - Greenplum Spark 连接器 org.postgresql.util.PSQLException : ERROR: error when writing data to gpfdist

linux - 如何为所有远程登录的用户设置默认进程调度优先级 ('nice' 值)?

ruby - 为 ActiveRecord 测试创建数百万条记录

sql - 按给定数量的行值分组