Skip to content
Snippets Groups Projects
Commit 247b7034 authored by zsxwing's avatar zsxwing Committed by Cheng Lian
Browse files

[HOTFIX] Use the old Job API to support old Hadoop versions

#5526 uses `Job.getInstance`, which does not exist in the old Hadoop versions. Just use `new Job` to replace it.

cc liancheng

Author: zsxwing <zsxwing@gmail.com>

Closes #6095 from zsxwing/hotfix and squashes the following commits:

b0c2049 [zsxwing] Use the old Job API to support old Hadoop versions
parent 77f64c73
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ private[sql] case class InsertIntoFSBasedRelation(
}
if (doInsertion) {
val job = Job.getInstance(hadoopConf)
val job = new Job(hadoopConf)
job.setOutputKeyClass(classOf[Void])
job.setOutputValueClass(classOf[Row])
FileOutputFormat.setOutputPath(job, qualifiedOutputPath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment