Druid 部署中 遇到问题整理

Druid version: 0.9.0

1. coordinator run error - mysql config

error msg:

2017-07-19T07:18:56,636 ERROR [main] io.druid.cli.CliCoordinator - Error when starting up.  Failing.
com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Unknown provider[mysql] of Key[type=io.druid.metadata.MetadataStorageConnector, annotation=[none]], known options[[derby]]
  at io.druid.guice.PolyBind.createChoiceWithDefault(PolyBind.java:86) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.metadata.storage.derby.DerbyMetadataStorageDruidModule)
  while locating io.druid.metadata.MetadataStorageConnector
    for the 1st parameter of io.druid.guice.JacksonConfigManagerModule.getConfigManager(JacksonConfigManagerModule.java:52)
  at io.druid.guice.JacksonConfigManagerModule.getConfigManager(JacksonConfigManagerModule.java:52) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.guice.JacksonConfigManagerModule)
  while locating io.druid.common.config.ConfigManager
    for the 1st parameter of io.druid.common.config.JacksonConfigManager.(JacksonConfigManager.java:48)
  at io.druid.guice.JacksonConfigManagerModule.configure(JacksonConfigManagerModule.java:41) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.guice.JacksonConfigManagerModule)
  while locating io.druid.common.config.JacksonConfigManager
    for the 3rd parameter of io.druid.server.coordinator.DruidCoordinator.(DruidCoordinator.java:156)
  at io.druid.cli.CliCoordinator$1.configure(CliCoordinator.java:163) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.cli.CliCoordinator$1)
  while locating io.druid.server.coordinator.DruidCoordinator

原因:

druid默认配置中未加载Mysql扩展

解决方案:

扩展信息

conf/druid/_common/common.runtime.properties

druid.extensions.loadList=["mysql-metadata-storage"]

你可能感兴趣的:(Druid 部署中 遇到问题整理)