You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Chris Westin (JIRA)" <ji...@apache.org> on 2014/12/12 21:32:15 UTC

[jira] [Created] (DRILL-1856) inability to run Drill under certain networking conditions

Chris Westin created DRILL-1856:
-----------------------------------

             Summary: inability to run Drill under certain networking conditions
                 Key: DRILL-1856
                 URL: https://issues.apache.org/jira/browse/DRILL-1856
             Project: Apache Drill
          Issue Type: Improvement
          Components: Execution - RPC
         Environment: OSX on wifi away from the office
            Reporter: Chris Westin


At the office, Drill starts up fine, but when running it from home, I get an exception when it tries to start up the (embedded) drill bit:

java.net.UnknownHostException: wormsign.domain: wormsign.domain: nodename nor servname provided, or not known
	at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
	at org.apache.drill.exec.service.ServiceEngine.start(ServiceEngine.java:62)
	at org.apache.drill.exec.server.Drillbit.run(Drillbit.java:152)
	at org.apache.drill.exec.physical.impl.join.TestMergeJoinMulCondition.testMergeJoinInnerNullKey(TestMergeJoinMulCondition.java:81)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at .....

This can be worked around with a combination of

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 ce109d9..3128d5e 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
@@ -64,8 +64,8 @@ public class ServiceEngine implements Closeable{
     int userPort = userServer.bind(config.getInt(ExecConstants.INITIAL_USER_PORT), allowPortHunting);
     String address = useIP ?  InetAddress.getLocalHost().getHostAddress() : InetAddress.getLocalHost().getCanonicalHostName();
     DrillbitEndpoint partialEndpoint = DrillbitEndpoint.newBuilder()
-        .setAddress(address)
+        .setAddress("localhost")
         .setUserPort(userPort)
         .build();

and commenting out the line that calls InetAddress.getLocalhost()..... -- that's where the exception is coming from for me.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)