You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "James Turton (Jira)" <ji...@apache.org> on 2023/03/14 15:09:00 UTC

[jira] [Updated] (DRILL-8409) Allow the configuration of a bind address for network services

     [ https://issues.apache.org/jira/browse/DRILL-8409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Turton updated DRILL-8409:
--------------------------------
    Description: 
Drill provides the DRILL_HOST_NAME env var which determines what Drillbit host name will be exchanged over RPC for later look up by a remote client or Drillbit. This host name is used to check whether Drill is being asked to bind to the loopback address in distributed mode
{code:java}
    if (isDistributedMode && InetAddress.getByName(hostName).isLoopbackAddress()) {
      throw new DrillbitStartupException("Drillbit is disallowed to bind to loopback address in distributed mode.");
    }{code}
but is not subsequently used set the bind address used for the Drillbit's RPC and web ports! This issue proposes that the Drillbit network services bind address is determined by DRILL_HOST_NAME.

  was:
Drill provides the DRILL_HOST_NAME env var which determines what Drillbit host name will be exchanged over RPC for later look up by a remote client or Drillbit. Neither this variable nor any other allows Drill administrators to configure the bind address that will be used by Drill network services meaning that Drillbits can only be made to bind to 0.0.0.0.

This issue proposes the new env var DRILL_BIND_ADDRESS to allow the configuration of a bind address.


> Allow the configuration of a bind address for network services
> --------------------------------------------------------------
>
>                 Key: DRILL-8409
>                 URL: https://issues.apache.org/jira/browse/DRILL-8409
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components:  Server
>    Affects Versions: 1.21.0
>            Reporter: James Turton
>            Assignee: James Turton
>            Priority: Major
>
> Drill provides the DRILL_HOST_NAME env var which determines what Drillbit host name will be exchanged over RPC for later look up by a remote client or Drillbit. This host name is used to check whether Drill is being asked to bind to the loopback address in distributed mode
> {code:java}
>     if (isDistributedMode && InetAddress.getByName(hostName).isLoopbackAddress()) {
>       throw new DrillbitStartupException("Drillbit is disallowed to bind to loopback address in distributed mode.");
>     }{code}
> but is not subsequently used set the bind address used for the Drillbit's RPC and web ports! This issue proposes that the Drillbit network services bind address is determined by DRILL_HOST_NAME.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)