Accumulo
  1. Accumulo
  2. ACCUMULO-220

Update mechanism for services to define which IP address to use

    Details

      Description

      I have strong reason to believe that the mechanism we have in place for grabbing the IP address for a hostname does not work for hostnames defined in the hosts file. That is, I believe it will only hit against DNS for doing the name->IP lookup for the provided server name. This needs to be tested and, if validated, updated to check both DNS and the hosts file.

        Activity

        jv created issue -
        jv made changes -
        Field Original Value New Value
        Summary Provide mechanism for services to define which IP address to use Update mechanism for services to define which IP address to use
        Description Currently the services depend on INetAddress.getLocalHost().getHostAddress() to determine a nodes IP Address. This works well, unless your running a node which spans different networks. This can create undesirable network traversal, depending on how your network is setup. We do not want to complicate things by increasing the work to get running, but we should see about providing an optional setting to have services attempt to identify as a user specified IP before defaulting to getHostAddress(). I have strong reason to believe that the mechanism we have in place for grabbing the IP address for a hostname does not work for hostnames defined in the hosts file. That is, I believe it will only hit against DNS for doing the name->IP lookup for the provided server name. This needs to be tested and, if validated, updated to check both DNS and the hosts file.
        Hide
        Eric Newton added a comment -

        We're using basic java libraries for this. If you have an actual test case, re-open this ticket with a comment.

        Show
        Eric Newton added a comment - We're using basic java libraries for this. If you have an actual test case, re-open this ticket with a comment.
        Eric Newton made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12645895 ] patch-available, re-open possible [ 12671689 ]
        Christopher Tubbs made changes -
        Reporter jv [ jvines ] John Vines [ vines ]

          People

          • Assignee:
            Eric Newton
            Reporter:
            John Vines
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development