Cassandra Startup Error 1.2.6 on Linux x86_64

随声附和 提交于 2019-12-01 00:48:42

It looks like you're (a) running on a system with an incompatible glibc for snappy 1.0.5 and (b) upgraded from an earlier version that worked.

If you start Cassandra fresh on a non-Snappy-compatible system, it will detect the problem and skip compression. But when you're upgrading and you have compressed system tables, there's nothing Cassandra can do.

You can downgrade, you can upgrade glibc, or you can downgrade, switch to lz4 and run upgradesstables, and then upgrade again.

Edit: you might also be able to just drop the old 1.0.4 snappy in, instead, and remove 1.0.5.

Edit 2: Is this RHEL 5? Pretty much anything modern should be snappy-1.0.5-compatible.

Just in case anyone came across this post with the configuration I have:

  • rhel 5
  • cassandra 2.0.2

I had a startup problem - version `GLIBCXX_3.4.9' not found

Proposed solution:

  1. Compile snappy 1.1.0 (I guess it could've been 1.0.5) on rhel 5.
  2. Replace snappy 1.0.5 from the original cassandra 2.0.2 distribution with the version above
  3. Restart in sequence (seed first, then other nodes to join)

Bypassed the problem, it seems.

Hope the future cassandra versions will have instructions dealing with variety of OS versions. Theoretically this should work...

INFO 23:49:07,006 Enqueuing flush of Memtable-local@926294408(43/430 serialized/live bytes, 2 ops)
 INFO 23:49:07,006 Writing Memtable-local@926294408(43/430 serialized/live bytes, 2 ops)
 INFO 23:49:07,019 Completed flushing /var/lib/cassandra/data/system/local/system-local-jb-10-Data.db (70 bytes) for commitlog position ReplayPosition(segmentId=1383810511586, position=220516)
 INFO 23:49:07,030 Enqueuing flush of Memtable-local@1880462876(10086/100860 serialized/live bytes, 257 ops)
 INFO 23:49:07,030 Writing Memtable-local@1880462876(10086/100860 serialized/live bytes, 257 ops)
 INFO 23:49:07,042 Completed flushing /var/lib/cassandra/data/system/local/system-local-jb-11-Data.db (5280 bytes) for commitlog position ReplayPosition(segmentId=1383810511586, position=232503)
 INFO 23:49:07,064 Node myeng11.mycompany.com/10.65.0.201 state jump to normal
 INFO 23:49:07,067 Startup completed! Now serving reads.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!