Hello, everyone!
Do you know how to solve Huawei FusionInsight the default port 5432 or 20051 is occupied? Don't worry, the post will share with you.
Problem background and phenomenon
When the cluster installation process or the DBService service restart operation is performed, the DBService service fails to be started, and information such as the 5432 or 20051 port is occupied in the printed error log.
Cause Analysis
This scenario is generally because the default port 5432 or 20051 used by the DBService is occupied by other processes, or the DBService process is not stopped successfully, and the used port is not released.
Solution
Step 1. The resolution of the default port is occupied (using port 20051 as an example, port 5432 is similar).
Step 2. Use the PuTTY tool to log in to the DBService as the root user and install the error message. Run the command: netstat -nap | grep 20051.
Step 3. Use the kill command to forcibly terminate the process using port 20051.
Step 4. After about 2 minutes, execute the command again: netstat -nap | grep 20051 to see if there are still processes occupying the port.
Step 5. Confirm the service to which the port process belongs and modify it to another port.
Step 6. Run the find . -name "*20051*" command in the /tmp and /var/run/FusionInsight-DBService directories to delete all the files found.
Step 7. Log in to FusionInsight Manager and click Service Management to restart the DBService service.
This is my solution, can you share yours?
