Flink Same-Server Deployment (Non-Cross-Version Upgrade)
1. Image Pulling
Pull the target version application image on the Flink nodes according to the architecture (Offline Package Download).
- Linux amd64
- Linux arm64
docker pull nocoly/flink:1.19.760
docker pull nocoly/flink-arm64:-
2. Configuration Modification
Edit the /data/hap/script/docker-compose.yaml configuration file and update the image version tag of the flink service to the target version:
- Linux amd64
- Linux arm64
# Example configuration snippet
flink:
image: nocoly/flink:1.19.760
# Example configuration snippet
flink:
image: nocoly/flink-arm64:-
3. Service Restart
Run the following script from the manager’s root directory to restart the services. If you’re upgrading multiple services at the same time, you can run it once after updating all their configurations.
bash ./service.sh restartall
If the location of the service.sh file is forgotten, click to view the search command.
find / -path /proc -prune -o -name "service.sh" -print
The upgrade is complete when the command finishes and all services are ready.