Always fail to run run_example_server.sh

Below is the stacktrace. What should I config? Thanks.

This will run a stand-alone version of Druid

Please specify an example by its number.

Examples available:

1 - twitter/twitter_realtime.spec - No Description

2 - wikipedia/wikipedia_realtime.spec - No Description

[1] > 2

Running command:

  • java -Xmx512m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Ddruid.realtime.specFile=/Users/Yu/Documents/workspace/druid/services/target/druid-0.8.1-SNAPSHOT/examples/wikipedia/wikipedia_realtime.spec -classpath ‘/Users/Yu/Documents/workspace/druid/services/target/druid-0.8.1-SNAPSHOT/…/config/realtime:/Users/Yu/Documents/workspace/druid/services/target/druid-0.8.1-SNAPSHOT/examples/wikipedia:/Users/Yu/Documents/workspace/druid/services/target/druid-0.8.1-SNAPSHOT/config/_common:/Users/Yu/Documents/workspace/druid/services/target/druid-0.8.1-SNAPSHOT/config/realtime:/Users/Yu/Documents/workspace/druid/services/target/druid-0.8.1-SNAPSHOT/lib/*’ io.druid.cli.Main example realtime

2015-07-20T01:58:45,423 INFO [main] io.druid.guice.PropertiesModule - Loading properties from common.runtime.properties

2015-07-20T01:58:45,429 INFO [main] io.druid.guice.PropertiesModule - Loading properties from runtime.properties

Jul 20, 2015 1:58:45 AM org.hibernate.validator.internal.util.Version

INFO: HV000001: Hibernate Validator 5.1.3.Final

2015-07-20T01:58:46,125 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.guice.ExtensionsConfig] from props[druid.extensions.] as [ExtensionsConfig{searchCurrentClassloader=true, coordinates=[io.druid.extensions:druid-examples, io.druid.extensions:druid-kafka-eight], defaultVersion=‘0.8.1-SNAPSHOT’, localRepository=’/Users/Yu/.m2/repository’, remoteRepositories=[https://repo1.maven.org/maven2/, https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local]}]

2015-07-20T01:58:46,340 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:druid-examples] for class[io.druid.cli.CliCommandCreator]

2015-07-20T01:58:55,205 ERROR [main] io.druid.initialization.Initialization - Unable to resolve artifacts for [io.druid.extensions:druid-examples:jar:0.8.1-SNAPSHOT (runtime) -> < [ (https://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) ~[aether-impl-0.9.0.M2.jar:?]

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:253) [druid-server-0.8.1-SNAPSHOT.jar:0.8.1-SNAPSHOT]

at io.druid.initialization.Initialization.getFromExtensions(Initialization.java:153) [druid-server-0.8.1-SNAPSHOT.jar:0.8.1-SNAPSHOT]

at io.druid.cli.Main.main(Main.java:76) [druid-services-0.8.1-SNAPSHOT.jar:0.8.1-SNAPSHOT]

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:253)

at io.druid.initialization.Initialization.getFromExtensions(Initialization.java:153)

at io.druid.cli.Main.main(Main.java:76)

hi,
Druid, optionally, tries to download “extensions” from the maven repository online which seems to be failing in your case. It seems, you are running it from a machine with no access to public internet.

You can get the extensions separately so that they are not downloaded at runtime. Please see https://groups.google.com/forum/#!topic/druid-user/nKSI5NbWaSE .

– Himanshu

This is resolved in: https://github.com/druid-io/druid/issues/1540