mirror of https://github.com/apache/druid.git
fix bug and make it actually possible to load extensions
This commit is contained in:
parent
98dcd4468b
commit
2dc716bf7e
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>io.druid</groupId>
|
<groupId>io.druid.extensions</groupId>
|
||||||
<artifactId>druid-cassandra-storage</artifactId>
|
<artifactId>druid-cassandra-storage</artifactId>
|
||||||
<name>druid-cassandra-storage</name>
|
<name>druid-cassandra-storage</name>
|
||||||
<description>druid-cassandra-storage</description>
|
<description>druid-cassandra-storage</description>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>io.druid</groupId>
|
<groupId>io.druid.extensions</groupId>
|
||||||
<artifactId>druid-hdfs-storage</artifactId>
|
<artifactId>druid-hdfs-storage</artifactId>
|
||||||
<name>druid-hdfs-storage</name>
|
<name>druid-hdfs-storage</name>
|
||||||
<description>druid-hdfs-storage</description>
|
<description>druid-hdfs-storage</description>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>io.druid</groupId>
|
<groupId>io.druid.extensions</groupId>
|
||||||
<artifactId>druid-s3-extensions</artifactId>
|
<artifactId>druid-s3-extensions</artifactId>
|
||||||
<name>druid-s3-extensions</name>
|
<name>druid-s3-extensions</name>
|
||||||
<description>druid-s3-extensions</description>
|
<description>druid-s3-extensions</description>
|
||||||
|
|
|
@ -113,14 +113,14 @@ public class Initialization
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String coordinate : config.getCoordinates()) {
|
for (String coordinate : config.getCoordinates()) {
|
||||||
log.info("Loading extension[%s]", coordinate);
|
log.info("Loading extension[%s] for class[%s]", coordinate, clazz.getName());
|
||||||
try {
|
try {
|
||||||
URLClassLoader loader = getClassLoaderForCoordinates(aether, coordinate);
|
URLClassLoader loader = getClassLoaderForCoordinates(aether, coordinate);
|
||||||
|
|
||||||
final ServiceLoader<T> serviceLoader = ServiceLoader.load(clazz, loader);
|
final ServiceLoader<T> serviceLoader = ServiceLoader.load(clazz, loader);
|
||||||
|
|
||||||
for (T module : serviceLoader) {
|
for (T module : serviceLoader) {
|
||||||
log.info("Adding extension module[%s]", module.getClass());
|
log.info("Adding extension module[%s] for class[%s]", module.getClass(), clazz.getName());
|
||||||
retVal.add(module);
|
retVal.add(module);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue