[
https://issues.apache.org/jira/browse/DRILL-1856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Westin reassigned DRILL-1856:
-----------------------------------
Assignee: Chris Westin
> 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
>
> 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)