简体   繁体   English

无法启动cassandra

[英]Unable to start cassandra

I am trying to start cassandra so I did sudo ./cassandra 我正在尝试启动cassandra,所以我做了sudo ./cassandra

I came across this Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: node24.nise.local: node24.nise.local 我遇到此Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: node24.nise.local: node24.nise.local

so I did what was mentioned as on problem on starting cassandra link and i changed the /etc/hosts file. 所以我做了在启动cassandra链接时遇到的问题 ,我更改了/ etc / hosts文件。

Then the starting process got stuck after this: 然后,启动过程在此之后陷入了困境:

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

No other line was executed after this . 之后没有其他行被执行。 Can anyone help in letting me know why did this happen exactly. 任何人都可以帮助让我知道为什么会这样。

I think after this statement 我认为这句话之后

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

your server running normally, to verify do jps and check that CassandraDaemon is running or not. 您的服务器正常运行,以验证是否执行jps并检查CassandraDaemon是否正在运行。

I was getting same error .. 我遇到了同样的错误..

you just need to do give command in command prompt 你只需要在命令提示符下给命令

hostname localhost (or the hostname of where cassandra is running) 主机名localhost(或cassandra运行所在的主机名)

This believe it will solve your problem 相信这会解决您的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM