This section describes how to restore SSL for the HA module of DBService in the cluster where DBService is installed.
SSL has been enabled for the HA module of DBService.
Check whether SSL is enabled for the HA module of DBService.
Check $BIGDATA_HOME/FusionInsight_BASE_x.x.x/install/FusionInsight-dbservice-2.7.0/ha/module/hacom/conf/hacom.xml. If the file contains <hadataprotocol value="ssl"></hadataprotocol>, SSL is enabled.
cd $BIGDATA_HOME/FusionInsight_BASE_x.x.x/install/FusionInsight-dbservice-2.7.0/ha/local/hacom/conf/
cp hacom_local.xml $BIGDATA_HOME/tmp/
cat hacom_local.xml | grep "ssl>" -n | cut -d':' -f1 | xargs | sed 's/ /,/g' |xargs -n 1 -i sed -i '{}d' hacom_local.xml
cd $BIGDATA_HOME/FusionInsight_BASE_x.x.x/install/FusionInsight-dbservice-2.7.0/ha/module/hacom/conf/
cp hacom.xml $BIGDATA_HOME/tmp/
sed -i 's#<hadataprotocol.*#<hadataprotocol value="udp"/>#g' hacom.xml
sed -i 's#<rpcsupportssl.*#<rpcsupportssl value="true"/>#g' hacom.xml
$BIGDATA_HOME/FusionInsight_BASE_x.x.x/install/FusionInsight-dbservice-2.7.0 is the installation directory of DBService. Modify it based on the upgrade environment.
./stop_ha.sh
./start_ha.sh
ps -ef |grep "ha.bin" |grep DBSERVICE
[omm@host03]\>netstat -nap | grep 49989 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 127.0.0.1:20054 0.0.0.0:* LISTEN 49989/ha.bin udp 0 0 10.10.10.10:20052 0.0.0.0:* 49989/ha.bin udp 0 0 10.10.10.10:20053 0.0.0.0:* 49989/ha.bin