Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50021][CORE][UI] Fix
ApplicationPage
to hide App UI links wh…
…en UI is disabled This PR aims to fix `ApplicationPage` to hide UI link when UI is disabled. Previously, Spark throws `HTTP ERROR 500 java.lang.IllegalArgumentException: Invalid URI host: null (authority: null)` like the following **1. PREPARATION** ``` $ cat conf/spark-defaults.conf spark.ui.reverseProxy true spark.ui.reverseProxyUrl http://localhost:8080 $ sbin/start-master.sh $ sbin/start-worker.sh spark://$(hostname):7077 $ bin/spark-shell --master spark://$(hostname):7077 -c spark.ui.enabled=false ``` **2. BEFORE** <img width="496" alt="Screenshot 2024-10-17 at 21 24 32" src="https://github.com/user-attachments/assets/9884790c-a294-4e61-b630-7758c5532afc"> <img width="1002" alt="Screenshot 2024-10-17 at 21 24 51" src="https://github.com/user-attachments/assets/f1e3a121-37ba-4525-a433-21ad15402edf"> **3. AFTER** <img width="493" alt="Screenshot 2024-10-17 at 21 22 26" src="https://github.com/user-attachments/assets/7a1ef578-3d9f-495e-9545-6edd26b4d565"> Yes, but previously it was a broken link. Pass the CIs with the newly added test case. No. Closes #48534 from dongjoon-hyun/SPARK-50021. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Max Gekk <[email protected]> (cherry picked from commit ff47dd9) Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information