cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolai Grigoriev (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-6301) nodetool fails with java.lang.UnsatisfiedLinkError (cannot find libjemalloc.so) when JEMalloc is configured
Date Wed, 06 Nov 2013 00:58:17 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikolai Grigoriev resolved CASSANDRA-6301.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.3
    Reproduced In: 2.0.2

> nodetool fails with java.lang.UnsatisfiedLinkError (cannot find libjemalloc.so) when
JEMalloc is configured
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6301
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6301
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: Linux
> Cassandra 2.0.2
> libjemalloc.so in /usr/local/lib
>            Reporter: Nikolai Grigoriev
>            Priority: Trivial
>             Fix For: 2.0.3
>
>
> {code}
> >/opt/apache-cassandra-2.0.2/bin/nodetool ring
> Note: Ownership information does not include topology; for complete information, specify
a keyspace
> Datacenter: DC1
> ==========
> Address      Rack        Status State   Load            Owns                Token
>                                                                             9208241795664305161
> 10.3.45.160  r1          Up     Normal  125.88 GB       16.41%              -9222548266947385654
> 10.3.45.160  r1          Up     Normal  125.88 GB       16.41%              -9177629719965963707
> 10.3.45.160  r1          Up     Normal  125.88 GB       16.41%              -9039272433194428886
> 10.3.45.160  r1          Up     Normal  125.88 GB       16.41%              -9037742357058937987
> ...
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'jemalloc':
libjemalloc.so: cannot open shared object file: No such file or directory
>         at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
>         at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
>         at com.sun.jna.Library$Handler.<init>(Library.java:140)
>         at com.sun.jna.Native.loadLibrary(Native.java:375)
>         at com.sun.jna.Native.loadLibrary(Native.java:359)
>         at org.apache.cassandra.io.util.JEMallocAllocator.<init>(JEMallocAllocator.java:36)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>         at java.lang.Class.newInstance(Class.java:374)
>         at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:488)
>         at org.apache.cassandra.utils.FBUtilities.newOffHeapAllocator(FBUtilities.java:438)
>         at org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:442)
>         at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:104)
>         at org.apache.cassandra.tools.NodeCmd.printRing(NodeCmd.java:286)
>         at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:1092)
> {code}
> In my conf/cassandra-env.sh I have:
> {code}
> # Configure the following for JEMallocAllocator and if jemalloc is not available in the
system
> # library path (Example: /usr/local/lib/). Usually "make install" will do the right thing.
> export LD_LIBRARY_PATH=/usr/local/lib
> JVM_OPTS="$JVM_OPTS -Djava.library.path=/usr/local/lib/"
> {code}
> I believe this file is not sourced by the tools, this is why a tool that might need that
library cannot find it.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message