From 4b6438537e0d9796b54f9a7511807db68926b61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Mon, 3 Nov 2014 21:11:49 -0800 Subject: [PATCH] fix missing service name/port bindings for peons --- services/src/main/java/io/druid/cli/CliPeon.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/src/main/java/io/druid/cli/CliPeon.java b/services/src/main/java/io/druid/cli/CliPeon.java index ede47233c21..1c087411047 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; @@ -107,6 +108,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",