[
https://issues.apache.org/jira/browse/DRILL-1856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14260629#comment-14260629
]
Chris Westin commented on DRILL-1856:
-------------------------------------
Apparently this is a known problem with jdk7 which has been fixed in jdk8 but
not yet backported. Either way, we'll eventually update the Drill build to use
jdk8, in which case it will probably be a non-issue, but we'll have to wait and
test it to be sure.
In the meantime, I've attached a patch (not submitted through reviewboard,
because we want to see how the above shakes out) that can be used locally to
work around the problem if you're doing development and just need to run an
embedded drill bit for testing or debugging.
> 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
> Assignee: Chris Westin
> Fix For: Future
>
> Attachments: drill-1865.patch
>
>
> 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)