Prashant Sharma created SPARK-30595:
---------------------------------------
Summary: Unable to create local temp dir on spark on k8s mode,
with defaults.
Key: SPARK-30595
URL: https://issues.apache.org/jira/browse/SPARK-30595
Project: Spark
Issue Type: Bug
Components: Kubernetes
Affects Versions: 3.0.0
Reporter: Prashant Sharma
Unless we configure the property, {code} spark.local.dir /tmp {code} following
error occurs:
{noformat}
*20/01/21 08:33:17 INFO SparkEnv: Registering BlockManagerMasterHeartbeat*
*20/01/21 08:33:17 ERROR DiskBlockManager: Failed to create local dir in
/var/data/spark-284c6844-8969-4288-9a6b-b72679c5b8e4. Ignoring this directory.*
*java.io.IOException: Failed to create a temp directory (under
/var/data/spark-284c6844-8969-4288-9a6b-b72679c5b8e4) after 10 attempts!*
*at org.apache.spark.util.Utils$.createDirectory(Utils.scala:304)*
*at
org.apache.spark.storage.DiskBlockManager.$anonfun$createLocalDirs$1(DiskBlockManager.scala:164)*
*at
scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:245)*
*at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)*
{noformat}
I have not yet fully understood the root cause, will post my findings once it
is clear.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]