hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-3916) Fix problem with default bind address of ThriftServer
Date Tue, 14 Jun 2011 00:48:47 GMT

    [ https://issues.apache.org/jira/browse/HBASE-3916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048917#comment-13048917
] 

Todd Lipcon commented on HBASE-3916:
------------------------------------

+1, looks good to me

> Fix problem with default bind address of ThriftServer
> -----------------------------------------------------
>
>                 Key: HBASE-3916
>                 URL: https://issues.apache.org/jira/browse/HBASE-3916
>             Project: HBase
>          Issue Type: Bug
>          Components: thrift
>    Affects Versions: 0.90.3
>            Reporter: Lars George
>            Priority: Minor
>             Fix For: 0.92.0
>
>         Attachments: hbase-3916.diff
>
>
> 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:
> {code}
>      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();
>      }
> {code}
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message