Trying to startup druid via UserData in EC2

I’m attempting to use Amazon EC2’s UserData feature to spin up some test servers in so i can spin them up without having to connect to them to bring them online as a historical node. Below i include my UserData and relevant output from the cloud-init-output log file. Can anyone explain why I might be getting these errors?

UserData

#!/bin/bash

cp (redacted)/druid-0.7.2-SNAPSHOT/config/historical/c4.4x.runtime.properties (redacted)/druid-0.7.2-SNAPSHOT/config/historical/runtime.properties

cd (redacted)/druid-0.7.2-SNAPSHOT/

java -server -Xmx10g -Xms10g -XX:NewSize=6g -XX:MaxNewSize=6g -XX:MaxDirectMemorySize=23g -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -Djava.io.tmpdir=/mnt/tmp -classpath config/_common:config/historical:lib/* io.druid.cli.Main server historical

Output from cloud-init-output.log:

2015-06-29T18:06:14,725 INFO [main] io.druid.guice.PropertiesModule - Loading properties from common.runtime.properties

2015-06-29T18:06:14,864 INFO [main] io.druid.guice.PropertiesModule - Loading properties from runtime.properties

2015-06-29T18:06:15,945 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.guice.ExtensionsConfig] from props[druid.extensions.] as [ExtensionsConfig{searchCurrentCla

2015-06-29T18:06:16,186 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:druid-s3-extensions] for class[io.druid.cli.CliCommandCreator]

2015-06-29T18:06:19,293 ERROR [main] io.druid.initialization.Initialization - Unable to resolve artifacts for [io.druid.extensions:druid-s3-extensions:jar:0.7.2-SNAPSHOT (runtime) -> < [

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

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

at io.druid.cli.Main.main(Main.java:76) [druid-services-0.7.2-SNAPSHOT.jar:0.7.2-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:214)

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

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

As a clarification If i manually log into the machine after it launches and run the java command, the command works correctly. It’s not a version issue.

The error is complaining about missing the druid-s3-extensions extension. Is the machine able to connect to a remote location to download the dependencies? If not, you have to run the pull-deps tool to download the dependencies on the machine.