io.druid.initialization.Initialization - Unable to resolve artifacts for [io.druid.extensions:druid

593 views
Skip to first unread message

Rohit Jha

unread,
Dec 1, 2014, 8:23:42 AM12/1/14
to druid-de...@googlegroups.com
Getting such Error in every node intialization :::


2014-12-01 12:56:34,136 ERROR [main] io.druid.initialization.Initialization - Unable to resolve artifacts for [io.druid.extensions:druid-examples:jar:0.6.147 (runtime) -> [] < [central (http://repo1.maven.org/maven2/, releases+snapshots),  (https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local, releases+snapshots)]].
java.lang.NullPointerException
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:361)
        at io.tesla.aether.internal.DefaultTeslaAether.resolveArtifacts(DefaultTeslaAether.java:289)
        at io.druid.initialization.Initialization.getClassLoaderForCoordinates(Initialization.java:200)
        at io.druid.initialization.Initialization.getFromExtensions(Initialization.java:142)
        at io.druid.cli.Main.main(Main.java:78)
Exception in thread "main" java.lang.NullPointerException
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:361)
        at io.tesla.aether.internal.DefaultTeslaAether.resolveArtifacts(DefaultTeslaAether.java:289)
        at io.druid.initialization.Initialization.getClassLoaderForCoordinates(Initialization.java:200)
        at io.druid.initialization.Initialization.getFromExtensions(Initialization.java:142)
        at io.druid.cli.Main.main(Main.java:78)

Charles Allen

unread,
Dec 1, 2014, 10:00:04 AM12/1/14
to druid-de...@googlegroups.com
If you are running your own cluster and not using the examples, you can just remove the extensions' jar from the artifact list that Druid tries to plugin.

Fangjin Yang

unread,
Dec 1, 2014, 2:27:07 PM12/1/14
to druid-de...@googlegroups.com
Hi Rohit, are you behind a corporate firewall? FWIW, the easiest way to get around the the firewall problem is to checkout the latest druid stable from github, run the build script (or run a maven build yourself), and set druid.extensions.remoteRepositories=[]. Does this  help?


On Monday, December 1, 2014 5:23:42 AM UTC-8, Rohit Jha wrote:

Jing Li

unread,
Mar 12, 2015, 8:42:39 PM3/12/15
to druid-de...@googlegroups.com
i checked out the project and built, also set remoteRepositories=[]. now the issue is

 ERROR [main] io.druid.initialization.Initialization - Unable to resolve artifacts for [io.druid.extensions:druid-
org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact io.druid.extensions:druid-examples:jar:0.7.1-SNAPSHO
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384) ~[aether-impl-0
        at io.tesla.aether.internal.DefaultTeslaAether.resolveArtifacts(DefaultTeslaAether.java:289) ~[tesla-aether-0.0.5.jar:0.0.5]
        at io.druid.initialization.Initialization.getClassLoaderForCoordinates(Initialization.java:214) [druid-server-0.7.1-SNAPSHOT.jar:
        at io.druid.initialization.Initialization.getFromExtensions(Initialization.java:141) [druid-server-0.7.1-SNAPSHOT.jar:0.7.1-SNAPS
        at io.druid.cli.Main.main(Main.java:76) [druid-services-0.7.1-SNAPSHOT.jar:0.7.1-SNAPSHOT]
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact io.druid.extensions:druid-examples:jar:0.7.
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459) ~[aether-impl-0.9.0.M2.jar:
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262) ~[aether-impl-0.9.
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367) ~[aether-impl-0
        ... 4 more

Fangjin Yang

unread,
Mar 12, 2015, 8:44:57 PM3/12/15
to druid-de...@googlegroups.com
Hi Jing:

Please read:

The section on "I want classloader isolation, but I don't want my production machines downloading their own dependencies. What should I do?" should help

--
You received this message because you are subscribed to the Google Groups "Druid Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-developm...@googlegroups.com.
To post to this group, send email to druid-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-development/d67a7a2c-f04a-4c17-891a-e34928cf1b1d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jing Li

unread,
Mar 12, 2015, 8:57:14 PM3/12/15
to druid-de...@googlegroups.com
where to run "tools pull-deps" ?

Fangjin Yang

unread,
Mar 12, 2015, 8:58:20 PM3/12/15
to druid-de...@googlegroups.com
using the same main as you would use to run a node

Xavier Léauté

unread,
Mar 12, 2015, 9:15:37 PM3/12/15
to druid-de...@googlegroups.com
Did you run mvn install first? 

Xavier Léauté

unread,
Mar 12, 2015, 9:22:32 PM3/12/15
to druid-de...@googlegroups.com
Jing,

Whether you use pull deps or not Druid needs to find the extension artifacts in some maven repository. 

Because you built a snapshot version, the artifacts will only exist locally, and to get them into your local maven repository you have to run mvn install. 

J

unread,
Mar 13, 2015, 12:02:39 PM3/13/15
to druid-de...@googlegroups.com
Thanks Xavier! it resolves the issue
Reply all
Reply to author
Forward
0 new messages