南大通用GBase 8a升级报错existCoordinateHost and existDataHost must be empty in demo.options

GBase 8a在进行升级时,只需要在coordinateHost和dataHost填写IP即可,如果在installation:existCoordinateHost和existDataHost填写了IP,则会包如下的错误。

错误样例

*********************************************************************************
Do you accept the above licence agreement ([Y,y]/[N,n])? y
*********************************************************************************
                     Welcome to install GBase products
*********************************************************************************
Upgrade installation:existCoordinateHost and existDataHost must be empty in demo.options.

查看配置文件

[gbase@rh6-1 gcinstall]$ cat demo.options
installPrefix= /opt
coordinateHost =10.0.2.201
coordinateHostNodeID = 234,235,237
dataHost = 10.0.2.201,10.0.2.202
existCoordinateHost =10.0.2.201
existDataHost =10.0.2.201,10.0.2.202
loginUser= root
loginUserPwd = '111111'
#loginUserPwdFile = loginUserPwd.json
dbaUser = gbase
dbaGroup = gbase
dbaPwd = 'gbase1234'
rootPwd = '111111'
#rootPwdFile = rootPwd.json
dbRootPwd = ''
#mcastAddr = 226.94.1.39
mcastPort = 5493
[gbase@rh6-1 gcinstall]$

解决方案

编辑配置文件,注释掉existCoordinateHost和existDataHost即可。

[gbase@rh6-1 gcinstall]$ cat demo.options
installPrefix= /opt
coordinateHost =10.0.2.201
coordinateHostNodeID = 234,235,237
dataHost = 10.0.2.201,10.0.2.202
#existCoordinateHost =10.0.2.201
#existDataHost =10.0.2.201,10.0.2.202
loginUser= root
loginUserPwd = '111111'
#loginUserPwdFile = loginUserPwd.json
dbaUser = gbase
dbaGroup = gbase
dbaPwd = 'gbase1234'
rootPwd = '111111'
#rootPwdFile = rootPwd.json
dbRootPwd = ''
#mcastAddr = 226.94.1.39
mcastPort = 5493
[gbase@rh6-1 gcinstall]$