You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/02/28 08:05:00 UTC

[jira] [Resolved] (SPARK-30970) Fix NPE in resolving k8s master url

     [ https://issues.apache.org/jira/browse/SPARK-30970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun resolved SPARK-30970.
-----------------------------------
    Fix Version/s: 3.0.0
         Assignee: Kent Yao
       Resolution: Fixed

This is resolved via https://github.com/apache/spark/pull/27721

> Fix NPE in resolving k8s master url
> -----------------------------------
>
>                 Key: SPARK-30970
>                 URL: https://issues.apache.org/jira/browse/SPARK-30970
>             Project: Spark
>          Issue Type: Bug
>          Components: Kubernetes, Spark Core
>    Affects Versions: 2.4.5, 3.0.0, 3.1.0
>            Reporter: Kent Yao
>            Assignee: Kent Yao
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> {code:java}
> ```
> bin/spark-sql --master  k8s:///https://kubernetes.docker.internal:6443 --conf spark.kubernetes.container.image=yaooqinn/spark:v2.4.4
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.spark.util.Utils$.checkAndGetK8sMasterUrl(Utils.scala:2739)
> 	at org.apache.spark.deploy.SparkSubmit.prepareSubmitEnvironment(SparkSubmit.scala:261)
> 	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:774)
> 	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:161)
> 	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)
> 	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
> 	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:920)
> 	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929)
> 	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
> ```
> {code}
> Althrough k8s:///https://kubernetes.docker.internal:6443 is a wrong master url but should not throw npe



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org