|
|
|
@ -81,9 +81,12 @@ fi
|
|
|
|
|
|
|
|
|
|
timestamp "Launching port forwarding to pod '$spark_driver_pod' port '$spark_port'"
|
|
|
|
|
kubectl port-forward --address 127.0.0.1 ${namespace:+-n "$namespace"} "$spark_driver_pod" "$spark_port":"$spark_port" &
|
|
|
|
|
echo
|
|
|
|
|
url="http://localhost:$spark_port"
|
|
|
|
|
timestamp "Spark UI is now available at: $url"
|
|
|
|
|
|
|
|
|
|
if is_mac; then
|
|
|
|
|
echo
|
|
|
|
|
timestamp "Opening URL: http://localhost:$spark_port"
|
|
|
|
|
open "http://localhost:$spark_port"
|
|
|
|
|
timestamp "Opening URL: $url"
|
|
|
|
|
open "$url"
|
|
|
|
|
fi
|
|
|
|
|