[ 
https://issues.apache.org/jira/browse/SPARK-29021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925603#comment-16925603
 ] 

Kent Yao commented on SPARK-29021:
----------------------------------

it seems that need to configure options.path to an actual  host path too

> NoSuchElementException: key not found: hostPath.spark-local-dir-5.options.path
> ------------------------------------------------------------------------------
>
>                 Key: SPARK-29021
>                 URL: https://issues.apache.org/jira/browse/SPARK-29021
>             Project: Spark
>          Issue Type: Bug
>          Components: Kubernetes
>    Affects Versions: 2.4.4
>            Reporter: Kent Yao
>            Priority: Major
>
> Mount hostPath has an issue:
> {code:java}
> Exception in thread "main" java.util.NoSuchElementException: key not found: 
> hostPath.spark-local-dir-5.options.pathException in thread "main" 
> java.util.NoSuchElementException: key not found: 
> hostPath.spark-local-dir-5.options.path at 
> scala.collection.MapLike.default(MapLike.scala:235) at 
> scala.collection.MapLike.default$(MapLike.scala:234) at 
> scala.collection.AbstractMap.default(Map.scala:63) at 
> scala.collection.MapLike.apply(MapLike.scala:144) at 
> scala.collection.MapLike.apply$(MapLike.scala:143) at 
> scala.collection.AbstractMap.apply(Map.scala:63) at 
> org.apache.spark.deploy.k8s.KubernetesVolumeUtils$.parseVolumeSpecificConf(KubernetesVolumeUtils.scala:70)
>  at 
> org.apache.spark.deploy.k8s.KubernetesVolumeUtils$.$anonfun$parseVolumesWithPrefix$1(KubernetesVolumeUtils.scala:43)
>  at 
> scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:237) at 
> scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:321) at 
> scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:977) at 
> scala.collection.TraversableLike.map(TraversableLike.scala:237) at 
> scala.collection.TraversableLike.map$(TraversableLike.scala:230) at 
> scala.collection.AbstractSet.scala$collection$SetLike$$super$map(Set.scala:51)
>  at scala.collection.SetLike.map(SetLike.scala:104) at 
> scala.collection.SetLike.map$(SetLike.scala:104) at 
> scala.collection.AbstractSet.map(Set.scala:51) at 
> org.apache.spark.deploy.k8s.KubernetesVolumeUtils$.parseVolumesWithPrefix(KubernetesVolumeUtils.scala:33)
>  at 
> org.apache.spark.deploy.k8s.KubernetesConf$.createDriverConf(KubernetesConf.scala:179)
>  at 
> org.apache.spark.deploy.k8s.submit.KubernetesClientApplication.run(KubernetesClientApplication.scala:214)
>  at 
> org.apache.spark.deploy.k8s.submit.KubernetesClientApplication.start(KubernetesClientApplication.scala:198)
>  at 
> org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:920)
>  at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:179) at 
> org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:202) at 
> org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:89) at 
> org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:999) 
> at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1008) at 
> org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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

Reply via email to