apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.46k stars 3.7k forks source link

i use druid version0.15.1 add Materialized View ,but in query node:router have exception #8549

Closed shaoxinye closed 4 years ago

shaoxinye commented 5 years ago

router node has exception :

2019-09-17T16:30:27,996 WARN [main] org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Exception in thread "main" java.lang.RuntimeException: com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for org.apache.druid.client.TimelineServerView was bound. while locating org.apache.druid.client.TimelineServerView for the 1st parameter of org.apache.druid.query.materializedview.DataSourceOptimizer.(DataSourceOptimizer.java:60) at org.apache.druid.query.materializedview.MaterializedViewSelectionDruidModule.configure(MaterializedViewSelectionDruidModule.java:55) (via modules: com.google.inject.util.Modules$OverrideModule -> org.apache.druid.query.materializedview.MaterializedViewSelectionDruidModule)

1 error at org.apache.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:71) at org.apache.druid.cli.ServerRunnable.run(ServerRunnable.java:56) at org.apache.druid.cli.Main.main(Main.java:118) Caused by: com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for org.apache.druid.client.TimelineServerView was bound. while locating org.apache.druid.client.TimelineServerView for the 1st parameter of org.apache.druid.query.materializedview.DataSourceOptimizer.(DataSourceOptimizer.java:60) at org.apache.druid.query.materializedview.MaterializedViewSelectionDruidModule.configure(MaterializedViewSelectionDruidModule.java:55) (via modules: com.google.inject.util.Modules$OverrideModule -> org.apache.druid.query.materializedview.MaterializedViewSelectionDruidModule)

1 error at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470) at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107) 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 org.apache.druid.initialization.Initialization.makeInjectorWithModules(Initialization.java:419) at org.apache.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:68) ... 2 more

shaoxinye commented 5 years ago

who can help me?

surekhasaharan commented 5 years ago

Hey @shaoxinye it seems you might be missing some hadoop jars. What is there in your druid.extensions.loadList ?

liguifa commented 5 years ago

I had the same problem. druid.extensions.loadList=["druid-hdfs-storage", "mysql-metadata-storage", "druid-lookups-cached-global", "druid-kafka-indexing-service", "druid-datasketches", "druid-histogram", "druid-uniq", "materialized-view-maintenance", "materialized-view-selection"]

surekhasaharan commented 5 years ago

do you have "materialized-view-maintenance", "materialized-view-selection" on all the nodes or in common.runtime.properties. This suggests "make sure to only load materialized-view-selection on Broker and load materialized-view-maintenance on Overlord." Also these extensions are not required on router, so you can remove them from your router config.

stale[bot] commented 4 years ago

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.