Exception while deleting Spark temp dir in Windows 7 64 bit

后端 未结 10 1203
走了就别回头了
走了就别回头了 2021-02-12 23:43

I am trying to run unit test of spark job in windows 7 64 bit. I have

HADOOP_HOME=D:/winutils

winutils path= D:/winutils/bin/winutils.exe

I r

10条回答
  •  滥情空心
    2021-02-13 00:36

    The issue is in the ShutdownHook that tries to delete the temp files but fails. Though you cannot solve the issue, you can simply hide the exceptions by adding the following 2 lines to your log4j.properties file in %SPARK_HOME%\conf. If the file does not exist, copy the log4j.properties.template and rename it.

    log4j.logger.org.apache.spark.util.ShutdownHookManager=OFF
    log4j.logger.org.apache.spark.SparkEnv=ERROR
    

    Out of sight is out of mind.

提交回复
热议问题