diff --git a/services/src/main/java/io/druid/cli/CliPeon.java b/services/src/main/java/io/druid/cli/CliPeon.java index 0c9a74dfa3b..f777f08b62b 100644 --- a/services/src/main/java/io/druid/cli/CliPeon.java +++ b/services/src/main/java/io/druid/cli/CliPeon.java @@ -26,6 +26,7 @@ import com.google.inject.Injector; import com.google.inject.Key; import com.google.inject.Module; import com.google.inject.multibindings.MapBinder; +import com.google.inject.name.Names; import com.metamx.common.lifecycle.Lifecycle; import com.metamx.common.logger.Logger; import io.airlift.command.Arguments; @@ -108,6 +109,9 @@ public class CliPeon extends GuiceRunnable @Override public void configure(Binder binder) { + binder.bindConstant().annotatedWith(Names.named("serviceName")).to("druid/peon"); + binder.bindConstant().annotatedWith(Names.named("servicePort")).to(-1); + PolyBind.createChoice( binder, "druid.indexer.task.chathandler.type",