Cassandra启动错误1.2.6在Linux x86_64 [英] Cassandra Startup Error 1.2.6 on Linux x86_64

查看:363
本文介绍了Cassandra启动错误1.2.6在Linux x86_64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在最新稳定版本的linux上安装cassandra - http://cassandra.apache.org/download/ - 1.2.6

Trying to install cassandra on linux from latest stable release - http://cassandra.apache.org/download/ - 1.2.6

我已经修改cassndra.yaml指向一个自定义目录,而不是/ var,因为我没有写访问/ var

I have modified the cassndra.yaml to point to a custom directory instead of /var since I do not have write access on /var

我在启动时看到此错误。没有找到任何答案在谷歌,因为发布似乎相对较新。

I am seeing this error on startup. Not able to find any answers on google yet since the release seems relatively new. Just posting it here in case its a silly mistake on my side.

相同的分发文件在我的macos x86_64机器上工作得很好。

Same distribution file worked fine on my macos x86_64 machine.

 INFO 19:24:35,513 Not using multi-threaded compaction
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:322)
    at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:229)
    at org.xerial.snappy.Snappy.<clinit>(Snappy.java:48)
    at org.apache.cassandra.io.compress.SnappyCompressor.create(SnappyCompressor.java:45)
    at org.apache.cassandra.io.compress.SnappyCompressor.isAvailable(SnappyCompressor.java:55)
    at org.apache.cassandra.io.compress.SnappyCompressor.<clinit>(SnappyCompressor.java:37)
    at org.apache.cassandra.config.CFMetaData.<clinit>(CFMetaData.java:82)
    at org.apache.cassandra.config.KSMetaData.systemKeyspace(KSMetaData.java:81)
    at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:468)
    at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:123)
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:211)
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:441)
    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:484)
Caused by: java.lang.UnsatisfiedLinkError: /tmp/snappy-1.0.5-libsnappyjava.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /tmp/snappy-1.0.5-libsnappyjava.so)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(Unknown Source)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at org.xerial.snappy.SnappyNativeLoader.load(SnappyNativeLoader.java:39)
    ... 17 more

请建议可能是什么问题。

Please suggest what could be the issue. I will also add any more findings to this page as I discover anything new.

查看这个主题 - cassandra 1.2未能启动在freebsd中snappy

Looked at this so thread - cassandra 1.2 fails to init snappy in freebsd

但仍然看到问题。

我已尝试设置

internode_compression: none

但仍会在日志中看到相同的错误。

However still see the same error in logs.

推荐答案

看起来你是(a)在一个系统上运行一个不兼容的glibc为snappy 1.0.5和(b)从早期版本升级工作。

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.

如果您在非Snappy兼容系统上启动Cassandra,它会检测问题并跳过压缩。

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.

你可以降级,你可以升级glibc,或者你可以降级,切换到lz4并运行upgradeesstables,然后再次升级。

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

编辑:您可能也可以删除旧的1.0.4 snappy,而不是删除1.0.5 。

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

编辑2:这是RHEL 5吗?几乎任何现代应该snappy-1.0.5兼容。

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

这篇关于Cassandra启动错误1.2.6在Linux x86_64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆