Null Pointer Exception while running Druid Real Time Node

117 views
Skip to first unread message

Divya Sharma

unread,
Oct 30, 2014, 1:41:50 AM10/30/14
to druid-de...@googlegroups.com
I am setting up the node  in my office on virtual machine with jdk 1.7. I am also able to download from metamx.artifactoryonline.com
However I am not able to understand the solutions given on http://druid.io/docs/latest/Modules.html
Do I need Apache maven?
Is this a company firewall problem?

druid@sles11sp5114:~/Installable/druid-services-0.6.146> ./run_example_server.sh
This will run a stand-alone version of Druid
Please specify an example type.
Examples availables:
rabbitmq rand twitter webstream wikipedia
> wikipedia

Running command:
+ java -Xmx256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Ddruid.realtime.specFile=/home/druid/Installable/druid-services-0.6.146/examples/wikipedia/wikipedia_realtime.spec -classpath '/home/druid/Installable/druid-services-0.6.146/examples/wikipedia:/home/druid/Installable/druid-services-0.6.146/../config/realtime:/home/druid/Installable/druid-services-0.6.146/lib/*:/home/druid/Installable/druid-services-0.6.146/config/realtime' io.druid.cli.Main example realtime
2014-10-30 13:31:33,801 INFO [main] io.druid.guice.PropertiesModule - Loading properties from runtime.properties
2014-10-30 13:31:33,847 INFO [main] org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.0.1.Final
2014-10-30 13:31:34,493 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:0.6.146, io.druid.extensions:druid-kafka-seven:0.6.146, io.druid.extensions:druid-rabbitmq:0.6.146], localRepository='/home/druid/.m2/repository', remoteRepositories=[http://repo1.maven.org/maven2/, https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local]}]
2014-10-30 13:31:34,661 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:druid-examples:0.6.146] for class[io.druid.cli.CliCommandCreator]
2014-10-30 13:32:45,608 ERROR [main] io.druid.initialization.Initialization - Unable to resolve artifacts for [io.druid.extensions:druid-examples:jar:0.6.146 (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:199)
        at io.druid.initialization.Initialization.getFromExtensions(Initialization.java:141)
        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:199)
        at io.druid.initialization.Initialization.getFromExtensions(Initialization.java:141)
        at io.druid.cli.Main.main(Main.java:78)

Fangjin Yang

unread,
Oct 30, 2014, 1:51:36 PM10/30/14
to druid-de...@googlegroups.com
We've seen this problem before with firewalls. The easiest way to get around the problem may be to pull the druid repo and run a maven clean install yourself. There will be a tarball under the services/target directory that you can use to run the same example.
Reply all
Reply to author
Forward
0 new messages