[SPARK-12053][CORE] EventLoggingListener.getLogPath needs 4 parameters
```EventLoggingListener.getLogPath``` needs 4 input arguments: https://github.com/apache/spark/blob/v1.6.0-preview2/core/src/main/scala/org/apache/spark/scheduler/EventLoggingListener.scala#L276-L280 the 3rd parameter should be appAttemptId, 4th parameter is codec... Author: Teng Qiu <teng.qiu@gmail.com> Closes #10044 from chutium/SPARK-12053.
This commit is contained in:
parent
2c5dee0fb8
commit
a8ceec5e8c
|
@ -934,7 +934,7 @@ private[deploy] class Master(
|
||||||
}
|
}
|
||||||
|
|
||||||
val eventLogFilePrefix = EventLoggingListener.getLogPath(
|
val eventLogFilePrefix = EventLoggingListener.getLogPath(
|
||||||
eventLogDir, app.id, app.desc.eventLogCodec)
|
eventLogDir, app.id, appAttemptId = None, compressionCodecName = app.desc.eventLogCodec)
|
||||||
val fs = Utils.getHadoopFileSystem(eventLogDir, hadoopConf)
|
val fs = Utils.getHadoopFileSystem(eventLogDir, hadoopConf)
|
||||||
val inProgressExists = fs.exists(new Path(eventLogFilePrefix +
|
val inProgressExists = fs.exists(new Path(eventLogFilePrefix +
|
||||||
EventLoggingListener.IN_PROGRESS))
|
EventLoggingListener.IN_PROGRESS))
|
||||||
|
|
Loading…
Reference in a new issue