You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Shreya Chakravarty <sh...@persistent.co.in> on 2009/10/08 06:07:13 UTC

Problems starting cassandra - Please help

Hi

I am facing issues starting Cassandra

euca-linux-sles:/opt/cassandra/bin # Error: Exception thrown by the agent : java
.net.MalformedURLException: Local host name unknown: java.net.UnknownHostExcepti
on: euca-linux-sles: euca-linux-sles
Exception in thread "jlmAgent" java.lang.Error: snmp agent failed to launch
        at com.ibm.misc.SystemIntialization$2.run(SystemIntialization.java:137)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at com.ibm.misc.SystemIntialization$2.run(SystemIntialization.java:135)
Caused by: java.lang.RuntimeException: Exception thrown by the agent
        at sun.management.Agent.error(Agent.java:294)
        at sun.management.Agent.error(Agent.java:285)
        at sun.management.Agent.startAgent(Agent.java:134)
        at sun.management.Agent.startAgent(Agent.java:230)
        ... 5 more
Listening for transport dt_socket at address: 8888
DEBUG - Loading settings from ./../conf/storage-conf.xml
DEBUG - Syncing log with a period of 1000
DEBUG - opening keyspace Keyspace1
DEBUG - adding StandardByUUID1 as 0
DEBUG - adding Standard1 as 1
DEBUG - adding Standard2 as 2
DEBUG - adding Super1 as 3
DEBUG - adding LocationInfo as 4
DEBUG - adding HintsColumnFamily as 5
DEBUG - opening keyspace system
INFO - Replaying /var/cassandra/commitlog/CommitLog-1254890628180.log
INFO - Flushing Memtable(LocationInfo)@857682719
INFO - Completed flushing Memtable(LocationInfo)@857682719
WARN - Exception was generated at : 10/07/2009 01:16:32 on thread main
euca-linux-sles: euca-linux-sles
java.net.UnknownHostException: euca-linux-sles: euca-linux-sles
        at java.net.InetAddress.getLocalHost(InetAddress.java:1380)
        at org.apache.cassandra.utils.FBUtilities.getLocalAddress(FBUtilities.ja
va:144)
        at org.apache.cassandra.utils.FBUtilities.getHostAddress(FBUtilities.jav
a:150)
        at org.apache.cassandra.net.EndPoint.<clinit>(EndPoint.java:53)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
        at org.apache.cassandra.service.StorageService.start(StorageService.java
:286)
        at org.apache.cassandra.service.CassandraServer.start(CassandraServer.ja
va:72)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.ja
va:100)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.jav
a:172)

ERROR - Exception encountered during startup.
java.lang.RuntimeException: java.net.UnknownHostException: euca-linux-sles: euca
-linux-sles
        at org.apache.cassandra.net.EndPoint.<init>(EndPoint.java:82)
        at org.apache.cassandra.service.StorageService.start(StorageService.java
:286)
        at org.apache.cassandra.service.CassandraServer.start(CassandraServer.ja
va:72)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.ja
va:100)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.jav
a:172)
Caused by: java.net.UnknownHostException: euca-linux-sles: euca-linux-sles
        at java.net.InetAddress.getLocalHost(InetAddress.java:1380)
        at org.apache.cassandra.utils.FBUtilities.getLocalAddress(FBUtilities.ja
va:144)
        at org.apache.cassandra.utils.FBUtilities.getHostAddress(FBUtilities.jav
a:150)
        at org.apache.cassandra.net.EndPoint.<init>(EndPoint.java:78)
        ... 4 more
Exception encountered during startup.
java.lang.RuntimeException: java.net.UnknownHostException: euca-linux-sles: euca
-linux-sles
        at org.apache.cassandra.net.EndPoint.<init>(EndPoint.java:82)
        at org.apache.cassandra.service.StorageService.start(StorageService.java
:286)
        at org.apache.cassandra.service.CassandraServer.start(CassandraServer.ja
va:72)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.ja
va:100)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.jav
a:172)
Caused by: java.net.UnknownHostException: euca-linux-sles: euca-linux-sles
        at java.net.InetAddress.getLocalHost(InetAddress.java:1380)
        at org.apache.cassandra.utils.FBUtilities.getLocalAddress(FBUtilities.ja
va:144)
        at org.apache.cassandra.utils.FBUtilities.getHostAddress(FBUtilities.jav
a:150)
        at org.apache.cassandra.net.EndPoint.<init>(EndPoint.java:78)
        ... 4 more

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

Re: Problems starting cassandra - Please help

Posted by Eric Evans <ee...@rackspace.com>.
On Thu, 2009-10-08 at 09:37 +0530, Shreya Chakravarty wrote:
> 
> I am facing issues starting Cassandra
> 
> euca-linux-sles:/opt/cassandra/bin # Error: Exception thrown by the
> agent : java.net.MalformedURLException: Local host name unknown:
> java.net.UnknownHostException: euca-linux-sles: euca-linux-sles

Does the local host name, euca-linux-sles, resolve, either through DNS
or /etc/hosts?

-- 
Eric Evans
eevans@rackspace.com