启动数据库时core dump
➢ 问题
2018-10-17 16:47:22.396312 CST,,,p9255,th164806080,,,,0,,,seg-10000,,,,,"LOG","00000","3rd party error log:
error : Opening and ending tag mismatch: property line 168 and configuration
^",,,,,,,,"SysLoggerMain","syslogger.c",518,
2018-10-17 16:47:22.412744 CST,,,p9254,th164806080,,,,0,,,seg-10000,,,,,"FATAL","XX000","Fail to parse file /usr/local/hawq/./etc/hawq-site.xml for reading configuration. (hawqsite.c:52)",,,,,,,0,,"hawqsite.c",52,"Stack trace:
1 0x810467 postgres errstart (??:?)
2 0x813433 postgres elog_finish (??:?)
3 0x88e553 postgres getHawqSiteConfigurationList (??:?)
4 0x829a70 postgres ProcessConfigFile (??:?)
5 0x7174a3 postgres (??:?)
6 0x7fd6068ab370 libpthread.so.0 (??:0)
7 0x7fd60610db83 libc.so.6 __select (??:0)
8 0x718145 postgres (??:?)
9 0x7173e5 postgres PostmasterMain (??:?)
10 0x68b249 postgres main (??:?)
11 0x7fd606040b35 libc.so.6 __libc_start_main (??:0)
12 0x4a2ffd postgres (??:?)
➢ 解答
查看配置文件有人将 HDFS 参数加入到 hawq-site.xml 里,由于参数不对,后面在启动命令时就会报错。去掉 HDFS 参数后就可以正常启动。