【发布时间】:2017-10-06 11:28:25
【问题描述】:
我是 Apache-Spark 的新手,正在尝试从我的应用程序 (tomcat) 创建 SparkConf,我注意到以下错误
ERROR [RMI TCP Connection(4)-127.0.0.1] DiskBlockManager.logError(91) | Failed to create local dir in /opt/software/apache-tomcat-7.0.70/temp. Ignoring this directory.
java.io.IOException: Failed to create a temp directory (under /opt/software/apache-tomcat-7.0.70/temp) after 10 attempts!
at org.apache.spark.util.Utils$.createDirectory(Utils.scala:285)
我没有在 spark-env.sh 中配置 SPARK_LOCAL_DIRS。按照默认安装,它被注释掉了。
我认为我的问题与apache spark, “failed to create any local dir” 有关,但不太确定。我应该将 SPARK_LOCAL_DIRS 配置为每个主/工作节点中的有效目录吗?如果是这样,该目录必须具有的最小磁盘空间是多少?
【问题讨论】:
标签: apache-spark