mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
Spark: Don't daemonize, don't pretend to tail logs we don't use
Along the way: Fixup port mismatch in worker container
This commit is contained in:
@@ -4,7 +4,7 @@ all: push
|
||||
# this tag and reset to v1. You should also double check the native
|
||||
# Hadoop libs at that point (we grab the 2.6.1 libs, which are
|
||||
# appropriate for 1.5.1-with-2.6).
|
||||
TAG = 1.5.1_v1
|
||||
TAG = 1.5.1_v2
|
||||
|
||||
containers:
|
||||
docker build -t gcr.io/google_containers/spark-base base
|
||||
|
@@ -17,8 +17,6 @@
|
||||
. /start-common.sh
|
||||
|
||||
echo "$(hostname -i) spark-master" >> /etc/hosts
|
||||
export SPARK_LOCAL_HOSTNAME=spark-master
|
||||
export SPARK_MASTER_IP=spark-master
|
||||
|
||||
/opt/spark/sbin/start-master.sh
|
||||
tail -F /opt/spark/logs/*
|
||||
# Run spark-class directly so that when it exits (or crashes), the pod restarts.
|
||||
/opt/spark/bin/spark-class org.apache.spark.deploy.master.Master --ip spark-master --port 7077 --webui-port 8080
|
||||
|
@@ -2,6 +2,6 @@ FROM gcr.io/google_containers/spark-base:latest
|
||||
|
||||
ADD start.sh /
|
||||
ADD log4j.properties /opt/spark/conf/log4j.properties
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
|
@@ -16,6 +16,5 @@
|
||||
|
||||
. /start-common.sh
|
||||
|
||||
/opt/spark/sbin/start-slave.sh spark://spark-master:7077
|
||||
|
||||
tail -F /opt/spark/logs/*
|
||||
# Run spark-class directly so that when it exits (or crashes), the pod restarts.
|
||||
/opt/spark/bin/spark-class org.apache.spark.deploy.worker.Worker spark://spark-master:7077 --webui-port 8081
|
||||
|
Reference in New Issue
Block a user