mirror of https://github.com/apache/druid.git
always upload SNAPSHOT self-contained jars
This commit is contained in:
parent
9e028840ed
commit
8b5fa8f85d
|
@ -75,7 +75,7 @@ public class JobHelper
|
||||||
final Path hdfsPath = new Path(distributedClassPath, jarFile.getName());
|
final Path hdfsPath = new Path(distributedClassPath, jarFile.getName());
|
||||||
|
|
||||||
if (!existing.contains(hdfsPath)) {
|
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);
|
log.info("Uploading jar to path[%s]", hdfsPath);
|
||||||
ByteStreams.copy(
|
ByteStreams.copy(
|
||||||
Files.newInputStreamSupplier(jarFile),
|
Files.newInputStreamSupplier(jarFile),
|
||||||
|
|
Loading…
Reference in New Issue