Apache Spark provides a suite of web user interfaces (UIs) that you can use to monitor the status and resource consumption of your Spark cluster.
- Standalone: Access: http://IP:4040
- Cluster mode:Through Spark log server xxxxxx:18088 or yarn UI, and enter the corresponding Spark UI interface.
- The Spark Web UI does not have a fixed access address and the address it is internal of EKS and is not directly accessible externally.
- Cannot fix the web UI for each spark task to an external LB.
The process of compiling the go language is contained in the Dockerfile. Into the directory where the Dockerfile is located and run the below command.
docker build --platform linux/amd64 -f Dockerfile -t nineep/spark-web-ui-controller:0.0.1 .
Upload the image produced by the above steps to your repository, and run below command in your kubectl environment:
kubectl apply -f deploy-spark-web-ui-controller.yaml