Same-server Deployment of Flink(cross version)
-
Download the mirror of the new version
- Internet Access Available
- Internet Access Unavailable
docker pull nocoly/flink:<version>https://pdpublic.nocoly.com/offline/flink-linux-amd64-version.tar.gz
#Execute the following after downloading to the server:
docker load -i flink-linux-amd64-version.tar.gz -
Enter the
flinkcontainer.docker exec -it $(docker ps | grep flink | awk '{print $1}') bash -
Backup and delete the
zookeeperdirectory in theFlinkdata directory and empty theJoblist inFlinkin the old version.mv /data/flink/zookeeper /data/flink/zookeeper.backup-$(date +%Y%m%d%H%M%S) -
Modify the version of the mirror corresponding to the
flinkservice in thedocker-compose.yamlfile.flink:
image: nocoly/flink:<version> -
Execute
bash ./service.sh restartallin the root directory of the manager to restart the service and wait for it to complete execution. -
Reopen/publish the task in the synchronization task list. 💥 💥 💥