Skip to content

Commit

Permalink
Hadoop Ingestion job configured with hdfs is failing with IllegalArgu…
Browse files Browse the repository at this point in the history
…mentException (#14236) (#14244)
  • Loading branch information
chrajeshbabu authored Oct 17, 2024
1 parent ad37bd8 commit fe47073
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,11 @@ protected void addMapperJarToDistributedCache(Job job, PinotFS outputDirFS, URI
throws Exception {
File ourJar = new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI());
Path distributedCacheJar = new Path(stagingDirURI.toString(), ourJar.getName());
outputDirFS.copyFromLocalDir(ourJar, distributedCacheJar.toUri());
if (ourJar.isDirectory()) {
outputDirFS.copyFromLocalDir(ourJar, distributedCacheJar.toUri());
} else {
outputDirFS.copyFromLocalFile(ourJar, distributedCacheJar.toUri());
}
job.addFileToClassPath(distributedCacheJar);
}

Expand Down

0 comments on commit fe47073

Please sign in to comment.