[
https://issues.apache.org/jira/browse/DRILL-4934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17715786#comment-17715786
]
ASF GitHub Bot commented on DRILL-4934:
---------------------------------------
jnturton commented on PR #617:
URL: https://github.com/apache/drill/pull/617#issuecomment-1520128915
@joeswingle the removed code that obtained an IP address fr the Drillbit
when this flag was set was
```
useIP ? InetAddress.getLocalHost().getHostAddress() :
InetAddress.getLocalHost().getCanonicalHostName();
```
That, from what I can tell, is generally going to return the IP address of
the local loopback interface which would not have any effect on embedded Drill
but would be useless for distributed Drill which is the only place it would be
of interest. Now that we have `DRILL_HOST_NAME` I think we can get by without a
feature like this but let me know if you'd like me to reopen here.
> ServiceEngine does not use property useIP for DrillbitStartup
> -------------------------------------------------------------
>
> Key: DRILL-4934
> URL: https://issues.apache.org/jira/browse/DRILL-4934
> Project: Apache Drill
> Issue Type: Bug
> Components: Execution - RPC
> Affects Versions: 1.8.0
> Environment: All Envrironments.
> Reporter: Joe Swingle
> Assignee: James Turton
> Priority: Minor
> Labels: easyfix
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Our environment is configured such that two networks cannot resolve machines
> by hostname, but can connect by IP address. This creates a problem when an
> ODBC/JDBC Connection requests a Drillbit from the Zookeeper Quorum. The
> Quorum returns the hostname of the running drillbit. The Quorum should be
> capable of returning the IP Address. Changing the existing property
> _'drill.exec.rpc.use.ip_' in *drill-override.conf* did not have desired
> effect.
> Reviewing code in org.apache.drill.exec.service.ServiceEngine.java, shows the
> boolean useIP is set to false, and never read from the configuration.
> Simply adding the folllowing code at Line 76 resolved issue.:
> {code:java}
> useIP = context.getConfig().getBoolean(ExecConstants.USE_IP_ADDRESS);
> {code}
> With the above code, the Drillbit is registerd in the quorum with the IP
> address, not the hostname.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)