Fix missing DataNodeService for historical (#6762)

This commit is contained in:
Jihoon Son 2018-12-20 09:13:38 -08:00 committed by Gian Merlino
parent 7a09cde4de
commit 78defa436b
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import com.google.inject.name.Names;
import io.airlift.airline.Command;
import org.apache.druid.client.cache.CacheConfig;
import org.apache.druid.client.cache.CacheMonitor;
import org.apache.druid.discovery.DataNodeService;
import org.apache.druid.discovery.LookupNodeService;
import org.apache.druid.discovery.NodeType;
import org.apache.druid.guice.CacheModule;
@ -104,7 +105,7 @@ public class CliHistorical extends ServerRunnable
bindAnnouncer(
binder,
DiscoverySideEffectsProvider.builder(NodeType.HISTORICAL)
.serviceClasses(ImmutableList.of(LookupNodeService.class))
.serviceClasses(ImmutableList.of(DataNodeService.class, LookupNodeService.class))
.build()
);
},