Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,17 @@ private ListenableFuture<?> handleSymlinkTextInputFormat(ExtendedFileSystem fs,
// the splits must be generated using the file system for the target path
// get the configuration for the target path -- it may be a different hdfs instance
ExtendedFileSystem targetFilesystem = hdfsEnvironment.getFileSystem(hdfsContext, targetPath);
JobConf targetJob = toJobConf(targetFilesystem.getConf());

Configuration targetConfiguration = targetFilesystem.getConf();
if (targetConfiguration instanceof HiveCachingHdfsConfiguration.CachingJobConf) {
targetConfiguration = ((HiveCachingHdfsConfiguration.CachingJobConf) targetConfiguration).getConfig();
}
if (targetConfiguration instanceof CopyOnFirstWriteConfiguration) {
targetConfiguration = ((CopyOnFirstWriteConfiguration) targetConfiguration).getConfig();
}

JobConf targetJob = toJobConf(targetConfiguration);

targetJob.setInputFormat(TextInputFormat.class);
targetInputFormat.configure(targetJob);
targetJob.set(SPLIT_MINSIZE, Long.toString(getMaxSplitSize(session).toBytes()));
Expand Down
Loading