小编Jea*_*Dby的帖子

Kubernetes 1.9 can't initialize SparkContext

Trying to catch up with the Spark 2.3 documentation on how to deploy jobs on a Kubernetes 1.9.3 cluster : http://spark.apache.org/docs/latest/running-on-kubernetes.html

The Kubernetes 1.9.3 cluster is operating properly on offline bare-metal servers and was installed with kubeadm. The following command was used to submit the job (SparkPi example job):

/opt/spark/bin/spark-submit --master k8s://https://k8s-master:6443 --deploy-mode cluster --name spark-pi --class org.apache.spark.examples.SparkPi --conf spark.executor.instances=2 --conf spark.kubernetes.container.image=spark:v2.3.0 local:///opt/spark/examples/jars/spark-examples_2.11-2.3.0.jar 
Run Code Online (Sandbox Code Playgroud)

Here is the stacktrace that we all love:

++ id -u
+ myuid=0
++ id …
Run Code Online (Sandbox Code Playgroud)

apache-spark kubernetes

5
推荐指数
1
解决办法
1886
查看次数

标签 统计

apache-spark ×1

kubernetes ×1