Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

override server hostname

$
0
0
When starting up zookeeper it finds its own hostname, eg:

2014-09-23 15:28:02,356 [myid:] - INFO [main:Environment [ at ] 100] - Server environment:host.name=ip-10-90-128-35.eu-west-1.compute.internal

But is it possible to override it? I've tried changing /etc/hostname but to no avail.

The problem I have is that when a client connects to the servers public IP it seems like the connection is accepted but then the clients tries to resolve and connect to the hostname that the server has set, so if the client can't resolve it, eg. in this case if the client isn't in EC2, it won't successfully connect. Also, why is the client doing that?

Viewing all articles
Browse latest Browse all 5648

Trending Articles