无法启动cassandra

时间:2014-06-04 06:56:34

标签: cassandra

我正在尝试启动cassandra,所以我做到了 sudo ./cassandra

我遇到过这个 Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: node24.nise.local: node24.nise.local

所以我做了problem on starting cassandra链接上提到的内容,我更改了/ etc / hosts文件。

然后启动过程被卡住了:

INFO 22:27:14,227 CFS(Keyspace='system', ColumnFamily='local') liveRatio is 33.904761904761905 (just-counted was 33.904761904761905).  calculation took 110ms for 3 cells

 INFO 22:27:14,260 Enqueuing flush of Memtable-local@726006040(84/840 serialized/live bytes, 4 ops)

 INFO 22:27:14,262 Writing Memtable-local@726006040(84/2848 serialized/live bytes, 4 ops)

 INFO 22:27:14,280 Completed flushing /var/lib/cassandra/data/system/local/system-local-jb-50-Data.db (116 bytes) for commitlog position ReplayPosition(segmentId=1401859631027, position=500327)

 WARN 22:27:14,327 setting live ratio to maximum of 64.0 instead of Infinity

 INFO 22:27:14,327 Enqueuing flush of Memtable-local@1689909512(10100/101000 serialized/live bytes, 259 ops)

 INFO 22:27:14,328 CFS(Keyspace='system', ColumnFamily='local') liveRatio is 64.0 (just-counted was 64.0).  calculation took 0ms for 0 cells

 INFO 22:27:14,350 Writing Memtable-local@1689909512(10100/101000 serialized/live bytes, 259 ops)

 INFO 22:27:14,386 Completed flushing /var/lib/cassandra/data/system/local/system-local-jb-51-Data.db (5278 bytes) for commitlog position ReplayPosition(segmentId=1401859631027, position=512328)

 INFO 22:27:14,493 Node localhost/127.0.0.1 state jump to normal

此后没有执行其他行。任何人都可以帮忙告诉我为什么会发生这种情况。

2 个答案:

答案 0 :(得分:1)

我想在这句话之后

INFO 22:27:14,493 Node localhost/127.0.0.1 state jump to normal

您的服务器正常运行,验证执行jps并检查CassandraDaemon是否正在运行。

答案 1 :(得分:1)

我得到同样的错误..

你只需要在命令提示符下执行命令

hostname localhost(或运行cassandra的主机名)

相信它会解决你的问题

相关问题