Migration Guide: Spark Core
Upgrading from Core 2.4 to 3.0
-
In Spark 3.0, deprecated method
TaskContext.isRunningLocallyhas been removed. Local execution was removed and it always has returnedfalse. -
In Spark 3.0, deprecated method
shuffleBytesWritten,shuffleWriteTimeandshuffleRecordsWritteninShuffleWriteMetricshave been removed. Instead, usebytesWritten,writeTimeandrecordsWrittenrespectively. -
In Spark 3.0, deprecated method
AccumulableInfo.applyhave been removed because creatingAccumulableInfois disallowed. -
In Spark 3.0, event log file will be written as UTF-8 encoding, and Spark History Server will replay event log files as UTF-8 encoding. Previously Spark writes event log file as default charset of driver JVM process, so Spark History Server of Spark 2.x is needed to read the old event log files in case of incompatible encoding.
