Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-3916

Fix problem with default bind address of ThriftServer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.90.3
    • 0.90.4, 0.92.0
    • Thrift
    • None
    • Reviewed

    Description

      The command line help states that when no -b bind address is given it uses 0.0.0.0. That is not the case though:

           InetAddress listenAddress = null;
           if (cmd.hasOption("bind")) {
             try {
               listenAddress = InetAddress.getByName(cmd.getOptionValue("bind"));
             } catch (UnknownHostException e) {
               LOG.error("Could not bind to provided ip address", e);
               printUsageAndExit(options, -1);
             }
           } else {
             listenAddress = InetAddress.getLocalHost();
           }
      

      The latter is not 0.0.0.0 but the current IP:

      beanshell% InetAddress.getLocalHost()
      de1-app-mbp-2/10.0.0.65

      So we either need to change the command line help or set the address to 0.0.0.0 instead.

      Attachments

        1. hbase-3916.diff
          0.6 kB
          Li Pi
        2. hbase-3916.diff
          0.6 kB
          Li Pi

        Activity

          People

            li Li Pi
            larsgeorge Lars George
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: