From 2b07c1b12bc5db4d62344ddf7ce8171afe2bdd2d Mon Sep 17 00:00:00 2001 From: joeswingle Date: Thu, 6 Oct 2016 13:47:59 -0400 Subject: [PATCH] useIP address is evaluated the property to register the drill bit with the ipaddress was not wired in code. Added it so that drill bits register by ipaddress. --- .../main/java/org/apache/drill/exec/service/ServiceEngine.java | 3 ++- exec/jdbc-all/pom.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/service/ServiceEngine.java b/exec/java-exec/src/main/java/org/apache/drill/exec/service/ServiceEngine.java index d5055461c96..719c29bca0c 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/service/ServiceEngine.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/service/ServiceEngine.java @@ -73,6 +73,8 @@ public ServiceEngine(ControlMessageHandler controlMessageHandler, UserWorker use "drill.exec.rpc.bit.server.memory.control.reservation", "drill.exec.rpc.bit.server.memory.control.maximum"); dataAllocator = newAllocator(context, "rpc:bit-data", "drill.exec.rpc.bit.server.memory.data.reservation", "drill.exec.rpc.bit.server.memory.data.maximum"); + useIP = context.getConfig().getBoolean(ExecConstants.USE_IP_ADDRESS); + logger.debug("Running Service Engine {} IP Address.", (useIP?"with":"without")); final EventLoopGroup eventLoopGroup = TransportCheck.createEventLoopGroup( context.getConfig().getInt(ExecConstants.USER_SERVER_RPC_THREADS), "UserServer-"); this.userServer = new UserServer( @@ -88,7 +90,6 @@ public ServiceEngine(ControlMessageHandler controlMessageHandler, UserWorker use this.allowPortHunting = allowPortHunting; this.isDistributedMode = isDistributedMode; registerMetrics(context.getMetrics()); - } private void registerMetrics(final MetricRegistry registry) { diff --git a/exec/jdbc-all/pom.xml b/exec/jdbc-all/pom.xml index c8f27d93a4d..c8924d6b59f 100644 --- a/exec/jdbc-all/pom.xml +++ b/exec/jdbc-all/pom.xml @@ -452,7 +452,7 @@ This is likely due to you adding new dependencies to a java-exec and not updating the excludes in this module. This is important as it minimizes the size of the dependency of Drill application users. - 21000000 + 44000000 15000000 ${project.build.directory}/drill-jdbc-all-${project.version}.jar