Trouble setting up the example environment

Hi,
I am trying to setup the example setup as per the steps here :

on start, i get the following exception.

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=/soft/druid-0.7.3/examples/wikipedia/wikipedia_realtime.spec -classpath ‘/soft/druid-0.7.3/…/config/realtime:/soft/druid-0.7.3/examples/wikipedia:/soft/druid-0.7.3/config/_common:/soft/druid-0.7.3/config/realtime:/soft/druid-0.7.3/lib/*’ io.druid.cli.Main example realtime

2015-07-14T13:23:42,708 INFO [main] io.druid.guice.PropertiesModule - Loading properties from common.runtime.properties

2015-07-14T13:23:42,714 INFO [main] io.druid.guice.PropertiesModule - Loading properties from runtime.properties

Jul 14, 2015 1:23:42 PM org.hibernate.validator.internal.util.Version

INFO: HV000001: Hibernate Validator 5.1.3.Final

2015-07-14T13:23:43,661 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, io.druid.extensions:mysql-metadata-storage], defaultVersion=‘0.7.3’, localRepository=’/root/.m2/repository’, remoteRepositories=[https://repo1.maven.org/maven2/, https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local]}]

2015-07-14T13:23:43,939 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:druid-examples] for class[io.druid.cli.CliCommandCreator]

2015-07-14T13:23:47,875 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/io/druid/extensions/druid-examples/0.7.3/druid-examples-0.7.3.jar]

2015-07-14T13:23:47,885 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/twitter4j/twitter4j-core/3.0.3/twitter4j-core-3.0.3.jar]

2015-07-14T13:23:47,888 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/twitter4j/twitter4j-async/3.0.3/twitter4j-async-3.0.3.jar]

2015-07-14T13:23:47,888 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/twitter4j/twitter4j-stream/3.0.3/twitter4j-stream-3.0.3.jar]

2015-07-14T13:23:47,888 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/commons-validator/commons-validator/1.4.0/commons-validator-1.4.0.jar]

2015-07-14T13:23:47,889 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar]

2015-07-14T13:23:47,889 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar]

2015-07-14T13:23:47,889 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar]

2015-07-14T13:23:47,903 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:druid-kafka-eight] for class[io.druid.cli.CliCommandCreator]

2015-07-14T13:23:48,443 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/io/druid/extensions/druid-kafka-eight/0.7.3/druid-kafka-eight-0.7.3.jar]

2015-07-14T13:23:48,452 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/apache/kafka/kafka_2.10/0.8.2.1/kafka_2.10-0.8.2.1.jar]

2015-07-14T13:23:48,453 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/com/yammer/metrics/metrics-core/2.2.0/metrics-core-2.2.0.jar]

2015-07-14T13:23:48,453 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.jar]

2015-07-14T13:23:48,453 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/apache/kafka/kafka-clients/0.8.2.1/kafka-clients-0.8.2.1.jar]

2015-07-14T13:23:48,453 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/net/jpountz/lz4/lz4/1.3.0/lz4-1.3.0.jar]

2015-07-14T13:23:48,454 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/xerial/snappy/snappy-java/1.1.1.6/snappy-java-1.1.1.6.jar]

2015-07-14T13:23:48,454 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar]

2015-07-14T13:23:48,454 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar]

2015-07-14T13:23:48,454 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar]

2015-07-14T13:23:48,454 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar]

2015-07-14T13:23:48,459 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar]

2015-07-14T13:23:48,459 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar]

2015-07-14T13:23:48,460 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/com/101tec/zkclient/0.3/zkclient-0.3.jar]

2015-07-14T13:23:48,489 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:mysql-metadata-storage] for class[io.druid.cli.CliCommandCreator]

2015-07-14T13:23:49,934 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/io/druid/extensions/mysql-metadata-storage/0.7.3/mysql-metadata-storage-0.7.3.jar]

2015-07-14T13:23:49,935 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/mysql/mysql-connector-java/5.1.34/mysql-connector-java-5.1.34.jar]

2015-07-14T13:23:49,935 INFO [main] io.druid.initialization.Initialization - Added URL[file:/root/.m2/repository/org/jdbi/jdbi/2.32/jdbi-2.32.jar]

2015-07-14T13:23:50,217 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:druid-examples] for class[io.druid.initialization.DruidModule]

2015-07-14T13:23:50,219 INFO [main] io.druid.initialization.Initialization - Adding extension module[class io.druid.examples.ExamplesDruidModule] for class[io.druid.initialization.DruidModule]

2015-07-14T13:23:50,219 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:druid-kafka-eight] for class[io.druid.initialization.DruidModule]

2015-07-14T13:23:50,221 INFO [main] io.druid.initialization.Initialization - Adding extension module[class io.druid.firehose.kafka.KafkaEightDruidModule] for class[io.druid.initialization.DruidModule]

2015-07-14T13:23:50,221 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:mysql-metadata-storage] for class[io.druid.initialization.DruidModule]

2015-07-14T13:23:50,223 INFO [main] io.druid.initialization.Initialization - Adding extension module[class io.druid.metadata.storage.mysql.MySQLMetadataStorageModule] for class[io.druid.initialization.DruidModule]

2015-07-14T13:23:51,717 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.metrics.DruidMonitorSchedulerConfig] from props[druid.monitoring.] as [io.druid.server.metrics.DruidMonitorSchedulerConfig@1a6633f]

Exception in thread “main” java.lang.NoClassDefFoundError: org/hyperic/sigar/SigarLoader

at com.metamx.metrics.SysMonitor.(SysMonitor.java:75)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:274)

at com.fasterxml.jackson.databind.util.ClassUtil.findClass(ClassUtil.java:225)

at com.fasterxml.jackson.databind.DeserializationContext.findClass(DeserializationContext.java:475)

at com.fasterxml.jackson.databind.deser.std.FromStringDeserializer$Std._deserialize(FromStringDeserializer.java:216)

at com.fasterxml.jackson.databind.deser.std.FromStringDeserializer.deserialize(FromStringDeserializer.java:122)

at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:232)

at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:206)

at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:25)

at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:538)

at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:106)

at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:238)

at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:118)

at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:2769)

at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:2700)

at io.druid.guice.JsonConfigurator.configurate(JsonConfigurator.java:81)

at io.druid.guice.JsonConfigProvider.get(JsonConfigProvider.java:181)

at io.druid.guice.JsonConfigProvider.get(JsonConfigProvider.java:60)

at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)

at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)

at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:66)

at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)

at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)

at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)

at com.google.inject.Scopes$1$1.get(Scopes.java:65)

at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)

at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)

at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)

at io.druid.guice.SupplierProvider.get(SupplierProvider.java:33)

at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)

at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)

at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:66)

at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)

at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)

at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)

at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:90)

at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:90)

at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:99)

at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)

at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)

at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:66)

at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)

at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)

at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)

at io.druid.guice.LifecycleScope$1.get(LifecycleScope.java:49)

at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)

at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)

at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)

at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)

at com.google.inject.Scopes$1$1.get(Scopes.java:65)

at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)

at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:205)

at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:199)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)

at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:199)

at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:180)

at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)

at com.google.inject.Guice.createInjector(Guice.java:96)

at com.google.inject.Guice.createInjector(Guice.java:73)

at com.google.inject.Guice.createInjector(Guice.java:62)

at io.druid.initialization.Initialization.makeInjectorWithModules(Initialization.java:369)

at io.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:55)

at io.druid.cli.ServerRunnable.run(ServerRunnable.java:37)

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

Caused by: java.lang.ClassNotFoundException: org.hyperic.sigar.SigarLoader

at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

… 70 more

Any help is appreciated.

Hi,

Which tutorial are you trying to follow. You command does
java … io.druid.cli.Main example realtime
I haven’t used it and not sure if that works. In fact there was a proposal to remove it.

Can you follow the tutorials on http://druid.io/docs/0.7.3/Tutorials.html instead?

– Himanshu