From 9de170540b84a875ff22300478d54fb4cc69f714 Mon Sep 17 00:00:00 2001 From: fjy Date: Mon, 28 Apr 2014 14:00:53 -0700 Subject: [PATCH] fix bug with selection in cli --- services/src/main/java/io/druid/cli/CliBroker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/src/main/java/io/druid/cli/CliBroker.java b/services/src/main/java/io/druid/cli/CliBroker.java index 57bc4212e30..f92ae410146 100644 --- a/services/src/main/java/io/druid/cli/CliBroker.java +++ b/services/src/main/java/io/druid/cli/CliBroker.java @@ -32,6 +32,7 @@ import io.druid.client.cache.CacheConfig; import io.druid.client.cache.CacheMonitor; import io.druid.client.cache.CacheProvider; import io.druid.client.selector.ServerSelectorStrategy; +import io.druid.client.selector.TierSelectorStrategy; import io.druid.curator.discovery.DiscoveryModule; import io.druid.guice.Jerseys; import io.druid.guice.JsonConfigProvider; @@ -83,7 +84,7 @@ public class CliBroker extends ServerRunnable binder.bind(Cache.class).toProvider(CacheProvider.class).in(ManageLifecycle.class); JsonConfigProvider.bind(binder, "druid.broker.cache", CacheProvider.class); JsonConfigProvider.bind(binder, "druid.broker.cache", CacheConfig.class); - JsonConfigProvider.bind(binder, "druid.broker.select.tier", ServerSelectorStrategy.class); + JsonConfigProvider.bind(binder, "druid.broker.select.tier", TierSelectorStrategy.class); JsonConfigProvider.bind(binder, "druid.broker.select.server", ServerSelectorStrategy.class); binder.bind(QuerySegmentWalker.class).to(ClientQuerySegmentWalker.class).in(LazySingleton.class);