cassandra 1.2未能启动snappy在freebsd [英] cassandra 1.2 fails to init snappy in freebsd

查看:442
本文介绍了cassandra 1.2未能启动snappy在freebsd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ERROR [WRITE-/10.10.35.30] 2013-06-19 23:15:56,907 CassandraDaemon.java (line 175) Exception in thread Thread[WRITE-/10.10.35.30,5,main]
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
    at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:79)
    at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:66)
    at org.apache.cassandra.net.OutboundTcpConnection.connect(OutboundTcpConnection.java:341)
    at org.apache.cassandra.net.OutboundTcpConnection.run(OutboundTcpConnection.java:143)

通过知道的问题,我发现这个
本地库Snappy-1.0.4.1-libsnappyjava.so Snappy压缩包括在snappy-java-1.0.4.1.jar文件中。当JVM初始化JAR时,库将添加到默认临时目录。如果使用noexec选项装载默认临时目录,则会导致上述异常。

When going through know issues i found this The native library snappy-1.0.4.1-libsnappyjava.so for Snappy compression is included in the snappy-java-1.0.4.1.jar file. When the JVM initializes the JAR, the library is added to the default temp directory. If the default temp directory is mounted with a noexec option, it results in the above exception.

我添加了JVM_OPTS = -Dorg.xerial.snappy.tempdir = / tmp cassandra.in.sh,它仍然没有工作。
i也尝试直接指定临时目录

i added JVM_OPTS=-Dorg.xerial.snappy.tempdir=/tmp in cassandra.in.sh and it still didnot work. i also tried specifying the temp directory directly

./bin/cassandra -Dorg.xerial.snappy.tempdir=/tmp

在同一台机器上Cassandra版本1.0.12工作正常。

On the same machine cassandra version 1.0.12 works fine.

任何帮助将不胜感激。

推荐答案

问题是,没有FreeBSD库包含在Cassandra附带的snappy JAR文件中。安装archivers / snappy-java端口,删除Cassandra附带的snappy-java JAR文件,并将/usr/local/share/java/classes/snappy-java.jar复制到Cassandra的lib目录中。

The problem is that there is no FreeBSD library included in the snappy JAR file that comes with Cassandra. Install the archivers/snappy-java port, delete the snappy-java JAR file that came with Cassandra, and copy /usr/local/share/java/classes/snappy-java.jar into Cassandra's lib directory.

这篇关于cassandra 1.2未能启动snappy在freebsd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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