Skip to content

Commit b0c2049

Browse files
committed
Use the old Job API to support old Hadoop versions
1 parent 65697bb commit b0c2049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/sources/commands.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private[sql] case class InsertIntoFSBasedRelation(
8888
}
8989

9090
if (doInsertion) {
91-
val job = Job.getInstance(hadoopConf)
91+
val job = new Job(hadoopConf)
9292
job.setOutputKeyClass(classOf[Void])
9393
job.setOutputValueClass(classOf[Row])
9494
FileOutputFormat.setOutputPath(job, qualifiedOutputPath)

0 commit comments

Comments
 (0)