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
7 changes: 2 additions & 5 deletions indexing-hadoop/src/main/java/io/druid/indexer/JobHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public class JobHelper
{
private static final Logger log = new Logger(JobHelper.class);

private static final Set<Path> existing = Sets.newHashSet();

private static final int NUM_RETRIES = 8;
private static final int SECONDS_BETWEEN_RETRIES = 2;
Expand Down Expand Up @@ -250,11 +249,9 @@ static void addSnapshotJarToClassPath(
{
// Snapshot jars are uploaded to non shared intermediate directory.
final Path hdfsPath = new Path(intermediateClassPath, jarFile.getName());

// existing is used to prevent uploading file multiple times in same run.
if (!existing.contains(hdfsPath)) {
// Prevent uploading same file multiple times in same run.
if (!fs.exists(hdfsPath)) {
uploadJar(jarFile, hdfsPath, fs);
existing.add(hdfsPath);
}
job.addFileToClassPath(hdfsPath);
}
Expand Down