Skip to content

Commit

Permalink
use setInputPaths(Job job, Path... inputPaths)
Browse files Browse the repository at this point in the history
  • Loading branch information
watermen committed Feb 26, 2015
1 parent b788a72 commit 1db1a1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private[hive] object HadoopTableReader extends HiveInspectors {
* instantiate a HadoopRDD.
*/
def initializeLocalJobConfFunc(path: String, tableDesc: TableDesc)(jobConf: JobConf) {
jobConf.set("mapred.input.dir", StringUtils.escapeString(path.toString()))
FileInputFormat.setInputPaths(jobConf, Seq[Path](path): _*)
if (tableDesc != null) {
PlanUtils.configureInputJobPropertiesForStorageHandler(tableDesc)
Utilities.copyTableJobPropertiesToConf(tableDesc, jobConf)
Expand Down

0 comments on commit 1db1a1c

Please sign in to comment.