From 8b5fa8f85da2d6cd4133f67d1add72705a06686e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Fri, 3 Apr 2015 16:56:20 -0700 Subject: [PATCH] always upload SNAPSHOT self-contained jars --- indexing-hadoop/src/main/java/io/druid/indexer/JobHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexing-hadoop/src/main/java/io/druid/indexer/JobHelper.java b/indexing-hadoop/src/main/java/io/druid/indexer/JobHelper.java index 7b4ed9fd1df..99d9a10c2c6 100644 --- a/indexing-hadoop/src/main/java/io/druid/indexer/JobHelper.java +++ b/indexing-hadoop/src/main/java/io/druid/indexer/JobHelper.java @@ -75,7 +75,7 @@ public class JobHelper final Path hdfsPath = new Path(distributedClassPath, jarFile.getName()); if (!existing.contains(hdfsPath)) { - if (jarFile.getName().endsWith("SNAPSHOT.jar") || !fs.exists(hdfsPath)) { + if (jarFile.getName().matches(".*SNAPSHOT(-selfcontained)?\\.jar$") || !fs.exists(hdfsPath)) { log.info("Uploading jar to path[%s]", hdfsPath); ByteStreams.copy( Files.newInputStreamSupplier(jarFile),