[ https://issues.apache.org/jira/browse/SPARK-35699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17360477#comment-17360477 ]
Kevin Su commented on SPARK-35699: ---------------------------------- I'm working on it > Improve error message when creating k8s pod failed. > --------------------------------------------------- > > Key: SPARK-35699 > URL: https://issues.apache.org/jira/browse/SPARK-35699 > Project: Spark > Issue Type: Improvement > Components: Kubernetes > Affects Versions: 3.1.2 > Reporter: Kevin Su > Priority: Minor > > > If I use wrong k8s master URL, I will get the below error message. > I think we could improve error message, so end-users can get a better > understanding of the message. > {code:java} > (base) ➜ spark git:(master) ./bin/spark-submit \ > --master k8s://https://192.168.49.3:8443 \ > --name spark-pi \ > --class org.apache.spark.examples.SparkPi \ > --conf spark.executor.instances=3 \ > --conf spark.kubernetes.authenticate.driver.serviceAccountName=spark \ > --conf spark.kubernetes.container.image=pingsutw/spark:testing \ > local:///opt/spark/examples/jars/spark-examples_2.12-3.2.0-SNAPSHOT.jar > 21/06/09 20:50:37 WARN Utils: Your hostname, kobe-pc resolves to a loopback > address: 127.0.1.1; using 192.168.103.20 instead (on interface ens160) > 21/06/09 20:50:37 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to > another address > 21/06/09 20:50:38 WARN NativeCodeLoader: Unable to load native-hadoop library > for your platform... using builtin-java classes where applicable > Using Spark's default log4j profile: > org/apache/spark/log4j-defaults.properties > 21/06/09 20:50:38 INFO SparkKubernetesClientFactory: Auto-configuring K8S > client using current context from users K8S config file > 21/06/09 20:50:39 INFO KerberosConfDriverFeatureStep: You have not specified > a krb5.conf file locally or via a ConfigMap. Make sure that you have the > krb5.conf locally on the driver image. > Exception in thread "main" > io.fabric8.kubernetes.client.KubernetesClientException: Operation: [create] > for kind: [Pod] with name: [null] in namespace: [default] failed. > at > io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:64) > at > io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:64) > at > io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:72) > at > io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:72) > at > io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:380) > at > io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:380) > at > io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:86) > at > io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:86) > {code} > > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org