Skip to content

Commit

Permalink
Casts to OutputCommitter rather than FileOutputCommtter
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed May 13, 2015
1 parent bfd1cf0 commit 6063f87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private[sql] abstract class BaseWriterContainer(

private def newOutputCommitter(context: TaskAttemptContext): OutputCommitter = {
val committerClass = context.getConfiguration.getClass(
"mapred.output.committer.class", null, classOf[FileOutputCommitter])
"mapred.output.committer.class", null, classOf[OutputCommitter])

Option(committerClass).map { clazz =>
val ctor = clazz.getDeclaredConstructor(classOf[Path], classOf[TaskAttemptContext])
Expand Down

0 comments on commit 6063f87

Please sign in to comment.