Problems running quick start

Hi, I am using Linux RedHat 7 and trying to run the quickstart example on the documentation but I got the error below.

I already added my hostname to the /etc/hosts and checked if the port is already listen something.

Could you help?

[root@cdrdblap001 druid-0.12.0]# java cat conf-quickstart/druid/historical/jvm. config | xargs -cp “conf-quickstart/druid/_common:conf-quickstart/druid/histori cal:lib/*” io.druid.cli.Main server historical
2018-05-10T10:43:56,570 INFO [main] io.druid.guice.PropertiesModule - Loading pr operties from common.runtime.properties
2018-05-10T10:43:56,574 INFO [main] io.druid.guice.PropertiesModule - Loading pr operties from runtime.properties
2018-05-10T10:43:56,618 INFO [main] org.hibernate.validator.internal.util.Versio n - HV000001: Hibernate Validator 5.1.3.Final
2018-05-10T10:43:57,229 INFO [main] io.druid.guice.JsonConfigurator - Loaded cla ss[class io.druid.guice.ExtensionsConfig] from props[druid.extensions.] as [Exte nsionsConfig{searchCurrentClassloader=true, directory=‘extensions’, hadoopDepend enciesDir=‘hadoop-dependencies’, hadoopContainerDruidClasspath=‘null’, addExtens ionsToHadoopContainer=false, loadList=}]
2018-05-10T10:43:57,360 INFO [main] io.druid.guice.JsonConfigurator - Loaded cla ss[class io.druid.guice.ModulesConfig] from props[druid.modules.] as [ModulesCon fig{excludeList=}]
2018-05-10T10:43:59,385 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.DruidNode] from props[druid.] as [DruidNode{serviceName=‘druid/historical’, host=‘CDRDBLAP001’, port=-1, plaintextPort=8083, enablePlaintextPort=true, tlsPort=-1, enableTlsPort=false}]
2018-05-10T10:43:59,397 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.curator.CuratorConfig] from props[druid.zk.service.] as [io.druid.curator.CuratorConfig@36153668]
2018-05-10T10:43:59,405 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.curator.ExhibitorConfig] from props[druid.exhibitor.service.] as [io.druid.curator.ExhibitorConfig@c862982c]
2018-05-10T10:43:59,484 INFO [main] org.apache.curator.utils.Compatibility - Running in ZooKeeper 3.4.x compatibility mode
2018-05-10T10:43:59,485 WARN [main] org.apache.curator.retry.ExponentialBackoffRetry - maxRetries too large (30). Pinning to 29
2018-05-10T10:43:59,543 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.initialization.ZkPathsConfig] from props[druid.zk.paths.] as [io.druid.server.initialization.ZkPathsConfig@22e2266d]
2018-05-10T10:43:59,551 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.java.util.emitter.core.LoggingEmitterConfig] from props[druid.emitter.logging.] as [LoggingEmitterConfig{loggerClass=‘io.druid.java.util.emitter.core.LoggingEmitter’, logLevel=‘info’}]
2018-05-10T10:43:59,568 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[interface io.druid.server.security.Escalator] from props[druid.escalator.] as [io.druid.server.security.NoopEscalator@23d7dddc]
2018-05-10T10:43:59,611 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.security.AuthConfig] from props[druid.auth.] as [AuthConfig{authenticatorChain=‘null’, authorizers=‘null’}]
2018-05-10T10:43:59,675 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.metrics.DruidMonitorSchedulerConfig] from props[druid.monitoring.] as [io.druid.server.metrics.DruidMonitorSchedulerConfig@b48ce33e]
2018-05-10T10:43:59,685 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.server.metrics.MonitorsConfig] from props[druid.monitoring.] as [MonitorsConfig{monitors=[class io.druid.java.util.metrics.JvmMonitor]}]
2018-05-10T10:43:59,687 INFO [main] io.druid.server.emitter.EmitterModule - Underlying emitter for ServiceEmitter: LoggingEmitter{log=Logger{name=[io.druid.java.util.emitter.core.LoggingEmitter], class[class org.apache.logging.slf4j.Log4jLogger]}, level=INFO}
2018-05-10T10:43:59,687 INFO [main] io.druid.server.emitter.EmitterModule - Extra service dimensions: {version=0.12.0}
Exception in thread “main” com.google.inject.CreationException: Unable to create injector, see the following errors:

  1. Error in custom provider, java.lang.RuntimeException: Cannot perf data for process 0 - java.lang.NullPointerException
    at io.druid.server.metrics.MetricsModule.getJvmMonitor(MetricsModule.java:114) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.server.metrics.MetricsModule)
    at io.druid.server.metrics.MetricsModule.getJvmMonitor(MetricsModule.java:114) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.server.metrics.MetricsModule)
    while locating io.druid.java.util.metrics.JvmMonitor
    at io.druid.server.metrics.MetricsModule.getMonitorScheduler(MetricsModule.java:90) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.server.metrics.MetricsModule)
    at io.druid.server.metrics.MetricsModule.getMonitorScheduler(MetricsModule.java:90) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.server.metrics.MetricsModule)
    while locating io.druid.java.util.metrics.MonitorScheduler
    at io.druid.server.metrics.MetricsModule.configure(MetricsModule.java:75) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.server.metrics.MetricsModule)
    while locating io.druid.java.util.metrics.MonitorScheduler annotated with @com.google.inject.name.Named(value=ForTheEagerness)

1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:184)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
at com.google.inject.Guice.createInjector(Guice.java:99)
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:403)
at io.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:62)
at io.druid.cli.ServerRunnable.run(ServerRunnable.java:49)
at io.druid.cli.Main.main(Main.java:116)
Caused by: java.lang.RuntimeException: Cannot perf data for process 0 - java.lang.NullPointerException
at org.gridkit.lab.jvm.perfdata.JStatData.connect(JStatData.java:38)
at io.druid.java.util.metrics.JvmMonitor$GcCounters.(JvmMonitor.java:150)
at io.druid.java.util.metrics.JvmMonitor.(JvmMonitor.java:46)
at io.druid.java.util.metrics.JvmMonitor.(JvmMonitor.java:60)
at io.druid.java.util.metrics.JvmMonitor.(JvmMonitor.java:55)
at io.druid.server.metrics.MetricsModule.getJvmMonitor(MetricsModule.java:114)
at io.druid.server.metrics.MetricsModule$$FastClassByGuice$$9b6589cd.invoke()
at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:264)
at com.google.inject.internal.ProviderMethod$Factory.provision(ProviderMethod.java:401)
at com.google.inject.internal.ProviderMethod$Factory.get(ProviderMethod.java:376)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at io.druid.guice.LifecycleScope$1.get(LifecycleScope.java:68)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054)
at io.druid.server.metrics.MetricsModule.getMonitorScheduler(MetricsModule.java:93)
at io.druid.server.metrics.MetricsModule$$FastClassByGuice$$9b6589cd.invoke()
at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:264)
at com.google.inject.internal.ProviderMethod$Factory.provision(ProviderMethod.java:401)
at com.google.inject.internal.ProviderMethod$Factory.get(ProviderMethod.java:376)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at io.druid.guice.LifecycleScope$1.get(LifecycleScope.java:68)
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:1092)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
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:1085)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:199)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:180)
… 8 more

``

I figured out that my version of java wassn’t right. I installed openjdk 8 and It worked!

Hi, i am using linux SUSE 12 sp3 and ORACLE JAVA8 SE ,and i had the same problem. Before you solve this problem,what is your java version?
在 2018年5月12日星期六 UTC+8上午12:31:23,Lucas Felipe写道: