hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars George <lars.geo...@gmail.com>
Subject Re: Thrift server bind address
Date Wed, 25 May 2011 19:10:16 GMT
Already done.

On Tue, May 24, 2011 at 5:25 PM, Stack <stack@duboce.net> wrote:
> I have seen this.  I don't think there is an issue on it.  Mind
> sticking the below up in JIRA Lars?
> St.Ack
>
> On Tue, May 24, 2011 at 4:34 AM, Lars George <lars.george@gmail.com> wrote:
>> The issue is this?
>>
>> 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.
>>
>> Creating an issue.
>>
>> On Tue, May 24, 2011 at 1:26 PM, Lars George <lars.george@gmail.com> wrote:
>>> Hi,
>>>
>>> I have to start the local thrift server with -b 0.0.0.0 to have my
>>> local DemoClient.pho connect to it. The command line help states that
>>> this should be the default while it looks like it isn't.
>>>
>>> Lars
>>>
>>
>

Mime
View raw message