diff --git a/indexing-hadoop/src/main/java/io/druid/indexer/HadoopDruidIndexerConfig.java b/indexing-hadoop/src/main/java/io/druid/indexer/HadoopDruidIndexerConfig.java index 4111f96bc79..31ee956c09a 100644 --- a/indexing-hadoop/src/main/java/io/druid/indexer/HadoopDruidIndexerConfig.java +++ b/indexing-hadoop/src/main/java/io/druid/indexer/HadoopDruidIndexerConfig.java @@ -478,10 +478,11 @@ public class HadoopDruidIndexerConfig { return new Path( String.format( - "%s/%s/%s", + "%s/%s/%s/%s", getWorkingPath(), schema.getDataSchema().getDataSource(), - schema.getTuningConfig().getVersion().replace(":", "") + schema.getTuningConfig().getVersion().replace(":", ""), + schema.getUniqueId() ) ); } diff --git a/indexing-hadoop/src/main/java/io/druid/indexer/HadoopIngestionSpec.java b/indexing-hadoop/src/main/java/io/druid/indexer/HadoopIngestionSpec.java index dbfcd20d005..829b980aabc 100644 --- a/indexing-hadoop/src/main/java/io/druid/indexer/HadoopIngestionSpec.java +++ b/indexing-hadoop/src/main/java/io/druid/indexer/HadoopIngestionSpec.java @@ -24,6 +24,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.collect.Lists; import com.google.common.collect.Ordering; +import io.druid.common.utils.UUIDUtils; import io.druid.indexer.hadoop.DatasourceIngestionSpec; import io.druid.indexer.hadoop.WindowedDataSegment; import io.druid.indexer.path.UsedSegmentLister; @@ -47,11 +48,15 @@ public class HadoopIngestionSpec extends IngestionSpec