On 02/18/2013 03:07 PM, amulya rattan wrote:
> It's throwing MalformedURLException
> 
> Error: Exception thrown by the agent : java.net.MalformedURLException:
> Local host name unknown: java.net.UnknownHostException: ip-10-0-0-228:
> ip-10-0-0-228
> 
> Where should I set the correct IP of the machine?

The correct question might be "where should I let the machine know who
itself is?"  ;-)

It looks like the machine's hostname is "ip-10-0-0-228" and it does not
know how to reach that name over the network, since it cannot resolve
that name to an IP address.  'ping ip-10-0-0-228' will also fail on this
machine, I assume.  However your machines are being installed and set up
is broken, if they don't know their own names, but this is easily fixable.

Here's an example - this box's hostname is "pono" and FQDN is
"pono.12.am" - the machine knows where to find these via entries in
/etc/hosts (as well as an entry for its real IP):

mshuler@pono:~$ ping -c1 pono
PING pono.12.am (127.0.1.1) 56(84) bytes of data.
64 bytes from pono.12.am (127.0.1.1): icmp_req=1 ttl=64 time=0.021 ms

--- pono.12.am ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.021/0.021/0.021/0.000 ms
mshuler@pono:~$ ping -c1 pono.12.am
PING pono.12.am (127.0.1.1) 56(84) bytes of data.
64 bytes from pono.12.am (127.0.1.1): icmp_req=1 ttl=64 time=0.021 ms

--- pono.12.am ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.021/0.021/0.021/0.000 ms
mshuler@pono:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       pono.12.am pono
10.214.235.223  pono.12.am pono

# The following lines are desirable for IPv6 capable hosts
::1             localhost ip6-localhost ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters
mshuler@pono:~$

-- 
Kind regards,
Michael

Reply via email to