What is your hostname of your machine?

from InetAddress's implementation, it would check hostname first. if the
hostname is 'localhost', it would return the loopback address.

http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/net/InetAddress.java#1403

On Wed, Sep 19, 2012 at 3:23 PM, ChenWei <[email protected]> wrote:

> I have a ZooKeeper cluster on three nodes and create /ledgers,
> /ledgers/available
> Then I start a Bookie on 10.11.151.91, Then a node named 127.0.0.1:3181is 
> created on /ledgers/available/.
> How should I configure it to make the node name correct?
> I tried to manually create a node '/ledgers/available/10.11.151.91:3181'
> but it didn't work.
>
> --
>
> Wei Chen, Graduate Student
> LIGO Scientific Collaboration Research Group
> Tsinghua University, Beijing, P. R. China
> http://ligo.org.cn
>

Reply via email to