Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1856

inability to run Drill under certain networking conditions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • Execution - RPC
    • None
    • OSX on wifi away from the office

    Description

      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.

      Attachments

        1. drill-1865.patch
          2 kB
          Chris Westin

        Activity

          People

            Unassigned Unassigned
            cwestin Chris Westin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: