Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
don't use epochId in batch sources
  • Loading branch information
jose-torres committed Mar 2, 2018
commit a18a57b7aeaf6c0f1bca03e608566629f57cf956
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class SimpleCSVDataWriterFactory(path: String, jobId: String, conf: Serializable
attemptNumber: Int,
epochId: Long): DataWriter[Row] = {
val jobPath = new Path(new Path(path, "_temporary"), jobId)
val filePath = new Path(jobPath, s"$jobId-$partitionId-$attemptNumber-$epochId")
val filePath = new Path(jobPath, s"$jobId-$partitionId-$attemptNumber")
val fs = filePath.getFileSystem(conf.value)
new SimpleCSVDataWriter(fs, filePath)
}
Expand Down Expand Up @@ -248,7 +248,7 @@ class InternalRowCSVDataWriterFactory(path: String, jobId: String, conf: Seriali
attemptNumber: Int,
epochId: Long): DataWriter[InternalRow] = {
val jobPath = new Path(new Path(path, "_temporary"), jobId)
val filePath = new Path(jobPath, s"$jobId-$partitionId-$attemptNumber-$epochId")
val filePath = new Path(jobPath, s"$jobId-$partitionId-$attemptNumber")
val fs = filePath.getFileSystem(conf.value)
new InternalRowCSVDataWriter(fs, filePath)
}
Expand Down