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

ServiceEngine does not use property useIP for DrillbitStartup

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.0
    • Fix Version/s: None
    • Component/s: Execution - RPC
    • Labels:
    • Environment:

      All Envrironments.

    • Flags:
      Patch, Important

      Description

      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.:

      useIP = context.getConfig().getBoolean(ExecConstants.USE_IP_ADDRESS);
      

      With the above code, the Drillbit is registerd in the quorum with the IP address, not the hostname.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joe.swingle Joe Swingle

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Issue deployment