SparkContext Error - File not found /tmp/spark-events does not exist

前端 未结 4 1309
自闭症患者
自闭症患者 2021-02-01 18:57

Running a Python Spark Application via API call - On submitting the Application - response - Failed SSH into the Worker

My python application exists in



        
4条回答
  •  春和景丽
    2021-02-01 19:35

    While trying to setup my spark history server on my local machine, I had the same 'File file:/tmp/spark-events does not exist.' error. I had customized my log directory to a non-default path. To resolve this, I needed to do 2 things.

    1. edit $SPARK_HOME/conf/spark-defaults.conf -- add these 2 lines spark.history.fs.logDirectory /mycustomdir spark.eventLog.enabled true
    2. create a link from /tmp/spark-events to /mycustomdir.
      ln -fs /tmp/spark-events /mycustomdir Ideally, step 1 would have solved my issue entirely, but i still needed to create the link so I suspect there might have been one other setting i missed. Anyhow, once I did this, i was able to run my historyserver and see new jobs logged in my webui.

提交回复
热议问题