From user-return-37542-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Thu Nov 14 02:01:36 2013 Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE1581075F for ; Thu, 14 Nov 2013 02:01:36 +0000 (UTC) Received: (qmail 73016 invoked by uid 500); 14 Nov 2013 02:01:34 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 72989 invoked by uid 500); 14 Nov 2013 02:01:34 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 72981 invoked by uid 99); 14 Nov 2013 02:01:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 02:01:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.192.179] (HELO mail-pd0-f179.google.com) (209.85.192.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 02:01:27 +0000 Received: by mail-pd0-f179.google.com with SMTP id g10so1260505pdj.10 for ; Wed, 13 Nov 2013 18:01:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=3S71W5qJEGS1C7SJGdtLyhWbgsa0dNYKvn1au81L1ig=; b=We5cbtpfn1dC2usZ8j7C+Fqlhc+cPSEcoSlButGE2CdsA71FpEMdDqB84w8OvhlgLF UQrbzK0JSEMrh1u6pL5G5ydwhsatEaIHVU0iUYtsHDUWT6IjG/8YbsmaSL7TdJZ+6CIt CQw1aAn5Z+ZifZZO50yx+fuGi0Ex2FIpO2DejKh+qIV+Nj8C43ZLFdDPLoU3FYv/vF4/ N1wOwiqgLg6XHCHMdOFWYvpx5m+E5hlTUcK19RIaJ4S1qraB6C6wYy3ecrk1Vx+Gd3As bPiYeVaK6BHQk5ZJJ2zNwCeKo+tJr1fjg5CQIEW6fWi1NeoLpmTl7NzAyJdPrKyrJAaq 4o6A== X-Gm-Message-State: ALoCoQnpMKizThE1NFEXSCVkC3AxhVjk9/eTymqIVAZ+SRPZlVrLJwpp5dBhpWNhA/UQYa78hund X-Received: by 10.68.88.161 with SMTP id bh1mr44591559pbb.49.1384394464910; Wed, 13 Nov 2013 18:01:04 -0800 (PST) Received: from [172.16.1.20] ([203.86.207.101]) by mx.google.com with ESMTPSA id lm2sm55220030pab.2.2013.11.13.18.01.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Nov 2013 18:01:04 -0800 (PST) From: Aaron Morton Content-Type: multipart/alternative; boundary="Apple-Mail=_B964FCA6-E3A7-4AED-86AB-6B1915EF8FC3" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: java.io.FileNotFoundException when setting up internode_compression Date: Thu, 14 Nov 2013 15:01:00 +1300 References: <002101cedf31$edb58190$c92084b0$@struq.com> To: Cassandra User In-Reply-To: X-Mailer: Apple Mail (2.1822) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_B964FCA6-E3A7-4AED-86AB-6B1915EF8FC3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 IIRC there is a test for snappy when the node starts does that log an = error ?=20 And / or can you create a CF that uses snappy compression (it was the = default for a while in 1.2).=20 Cheers ----------------- Aaron Morton New Zealand @aaronmorton Co-Founder & Principal Consultant Apache Cassandra Consulting http://www.thelastpickle.com On 13/11/2013, at 3:09 am, srmore wrote: > Thanks Christopher ! > I don't think glibc is an issue (as it did go that far) = /usr/tmp/snappy-1.0.5-libsnappyjava.so is not there, permissions look = ok, are there any special settings (like JVM args) that I should be = using ? I can see libsnappyjava.so in the jar though = (snappy-java-1.0.5.jar\org\xerial\snappy\native\Linux\i386\) one other = thing I am using RedHat 6. I will try updating glibc ans see what = happens. >=20 > Thanks !=20 >=20 >=20 >=20 >=20 > On Mon, Nov 11, 2013 at 5:01 PM, Christopher Wirt = wrote: > I had this the other day when we were accidentally provisioned a = centos5 machine (instead of 6). Think it relates to the version of = glibc. Notice it wants the native binary .so not the .jar >=20 > =20 >=20 > So maybe update to a newer version of glibc? Or possibly make sure the = .so exists at /usr/tmp/snappy-1.0.5-libsnappyjava.so? >=20 > I was lucky and just did an OS reload to centos6. >=20 > =20 >=20 > Here is someone having a similar issue. >=20 > = http://mail-archives.apache.org/mod_mbox/cassandra-commits/201307.mbox/%3C= JIRA.12616012.1352862646995.6820.1373083550278@arcas%3E >=20 > =20 >=20 > =20 >=20 > From: srmore [mailto:comomore@gmail.com]=20 > Sent: 11 November 2013 21:32 > To: user@cassandra.apache.org > Subject: java.io.FileNotFoundException when setting up = internode_compression >=20 > =20 >=20 > I might be missing something obvious here, for some reason I cannot = seem to get internode_compression =3D all to work. I am getting the = following exception. I am using cassandra 1.2.9 and have = snappy-java-1.0.5.jar in my classpath. Google search did not return any = useful result, has anyone seen this before ? >=20 >=20 > java.io.FileNotFoundException: /usr/tmp/snappy-1.0.5-libsnappyjava.so = (No such file or directory) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.(FileOutputStream.java:194) > at java.io.FileOutputStream.(FileOutputStream.java:145) > at = org.xerial.snappy.SnappyLoader.extractLibraryFile(SnappyLoader.java:394) > at = org.xerial.snappy.SnappyLoader.findNativeLibrary(SnappyLoader.java:468) > at = org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:318) > at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:229) > at org.xerial.snappy.Snappy.(Snappy.java:48) > at = org.apache.cassandra.io.compress.SnappyCompressor.create(SnappyCompressor.= java:45) > at = org.apache.cassandra.io.compress.SnappyCompressor.isAvailable(SnappyCompre= ssor.java:55) > at = org.apache.cassandra.io.compress.SnappyCompressor.(SnappyCompresso= r.java:37) > at = org.apache.cassandra.config.CFMetaData.(CFMetaData.java:82) > at = org.apache.cassandra.config.KSMetaData.systemKeyspace(KSMetaData.java:81) > at = org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor= .java:471) > at = org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor= .java:123) >=20 > Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in = java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738) > at java.lang.Runtime.loadLibrary0(Runtime.java:823) > at java.lang.System.loadLibrary(System.java:1028) > at = org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:5= 2) > ... 18 more >=20 >=20 --Apple-Mail=_B964FCA6-E3A7-4AED-86AB-6B1915EF8FC3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 IIRC = there is a test for snappy when the node starts does that log an error = ? 

And / or can you create a CF that uses snappy = compression (it was the default for a while in = 1.2). 

Cheers

http://www.thelastpickle.com

On 13/11/2013, at 3:09 am, srmore <comomore@gmail.com> = wrote:

Thanks Christopher !
I = don't think glibc is an issue (as it did go that far) /usr/tmp/snappy-1.0.5-libsnappyjava.so is not there, = permissions look ok, are there any special settings (like JVM args) that = I should be using ? I can see libsnappyjava.so in the jar though = (snappy-java-1.0.5.jar\org\xerial\snappy\native\Linux\i386\) one other = thing I am using RedHat 6. I will try updating glibc ans see what = happens.

Thanks !




On Mon, Nov 11, = 2013 at 5:01 PM, Christopher Wirt <chris.wirt@struq.com> wrote:

I had this the other day when we were accidentally = provisioned a centos5 machine (instead of 6). Think it relates to the = version of glibc. Notice it wants the native binary .so not the = .jar

 

So maybe update to a newer version of glibc? Or = possibly make sure the .so exists at /usr/tmp/snappy-1.0.5-libsnappyjava.so?

I was lucky and just did an OS reload to = centos6.

 

Here is someone having a similar = issue.

http://mail-archives.apache.org/mod_mbox/cassandra-commi= ts/201307.mbox/%3CJIRA.12616012.1352862646995.6820.1373083550278@arcas%3E<= /a>

 

 

From: srmore [mailto:comomore@gmail.com]
Sent: 11 November 2013 21:32
To: user@cassandra.apache.org
Subject: = java.io.FileNotFoundException when setting up = internode_compression

 

I might be missing = something obvious here, for some reason I cannot seem to get = internode_compression =3D all to work. I am getting  the following = exception. I am using cassandra 1.2.9 and have snappy-java-1.0.5.jar in = my classpath. Google search did not return any useful result, has anyone = seen this before ?


java.io.FileNotFoundException: = /usr/tmp/snappy-1.0.5-libsnappyjava.so (No such file or = directory)
        at = java.io.FileOutputStream.open(Native Method)
        at = java.io.FileOutputStream.<init>(FileOutputStream.java:194)
 =        at = java.io.FileOutputStream.<init>(FileOutputStream.java:145)
 =        at = org.xerial.snappy.SnappyLoader.extractLibraryFile(SnappyLoader.java:394)         at = org.xerial.snappy.SnappyLoader.findNativeLibrary(SnappyLoader.java:468)        at = org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:318)        at = org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:229)
        at = org.xerial.snappy.Snappy.<clinit>(Snappy.java:48)
  &nb= sp;     at = org.apache.cassandra.io.compress.SnappyCompressor.create(SnappyCompressor.= java:45)
        at = org.apache.cassandra.io.compress.SnappyCompressor.isAvailable(SnappyCompre= ssor.java:55)
        at = org.apache.cassandra.io.compress.SnappyCompressor.<clinit>(SnappyCom= pressor.java:37)
        at = org.apache.cassandra.config.CFMetaData.<clinit>(CFMetaData.java:82)<= br>        at = org.apache.cassandra.config.KSMetaData.systemKeyspace(KSMetaData.java:81)<= br>         at = org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor= .java:471)
        at = org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDesc= riptor.java:123)

Caused by: java.lang.UnsatisfiedLinkError: no = snappyjava in java.library.path
        at = java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
  &n= bsp;     at = java.lang.Runtime.loadLibrary0(Runtime.java:823)
   &nbs= p;    at = java.lang.System.loadLibrary(System.java:1028)
    =     at = org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:5= 2)
        ... 18 = more


= --Apple-Mail=_B964FCA6-E3A7-4AED-86AB-6B1915EF8FC3--