cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Ciuloaica <gciuloa...@gmail.com>
Subject Re: Cassandra nodes not joining the ring
Date Fri, 18 Jan 2013 13:28:22 GMT
also check firewalls(iptables, selinux) on the boxes ...

Chers,
Gabi
On Jan 18, 2013, at 3:26 PM, Gabriel Ciuloaica <gciuloaica@gmail.com> wrote:

> you need snappy jna on that machine installed... at least this could be seen from the
logs posted ...
> 
> Gabi
> 
> On Jan 18, 2013, at 12:19 PM, Traian Fratean <traian.fratean@3pillarglobal.com>
wrote:
> 
>> Hi,
>> 
>> I have a cluster of Cassandra 1.2.0 running on latest stable Scientific Linux.
>> Nodes start but when I check with nodetool I see only local machine in the ring.

>> 
>> $ /usr/bin/nodetool -host 10.60.15.63 -p 7199 ring
>> Note: Ownership information does not include topology; for complete information,
specify a keyspace
>> 
>> Datacenter: datacenter1
>> ==========
>> Address         Rack        Status State   Load            Owns                Token
                                      
>> 
>> 10.60.15.63     rack1       Up     Normal  88.23 KB        100.00%             0
>> 
>> The setup steps (for 15.63) were:
>> cassandra.yaml
>> - listen_address: 10.60.15.63
>> - rpc_address: 0.0.0.0
>> - seeds: 10.60.15.63
>> 
>> cassandra-env.sh
>> JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=dev-box1.company.local"
>> 
>> System setup
>> - in iptables I opened 7000 and 7199 ports
>> - set SElinux to disabled
>> 
>> Similar setup was done on the second box.
>> 
>> 
>> I inspected the logs and I have these errors:
>> In system.log:
>> 
>> INFO [main] 2013-01-17 15:52:20,668 CLibrary.java (line 61) JNA not found. Native
methods will be disabled.
>>  INFO [main] 2013-01-17 15:52:20,697 DatabaseDescriptor.java (line 130) Loading settings
from file:/etc/cassandra/default.conf/cassandra.yaml
>>  INFO [main] 2013-01-17 15:52:21,382 DatabaseDescriptor.java (line 189) DiskAccessMode
'auto' determined to be mmap, indexAccessMode is mmap
>>  INFO [main] 2013-01-17 15:52:21,382 DatabaseDescriptor.java (line 203) disk_failure_policy
is stop
>>  INFO [main] 2013-01-17 15:52:21,389 DatabaseDescriptor.java (line 266) Global memtable
threshold is enabled at 642MB
>> ERROR [main] 2013-01-17 15:52:21,602 DatabaseDescriptor.java (line 495) Fatal configuration
error
>> org.apache.cassandra.exceptions.ConfigurationException: For input string: "34028236692093846346337460743176821145"
>>         at org.apache.cassandra.dht.Murmur3Partitioner$1.validate(Murmur3Partitioner.java:180)
>>         at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:433)
>>         at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:121)
>>         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:178)
>>         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:397)
>>         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:440)
>>  INFO [main] 2013-01-17 15:52:25,806 CassandraDaemon.java (line 101) Logging initialized
>>  INFO [main] 2013-01-17 15:52:25,840 CassandraDaemon.java (line 123) JVM vendor/version:
Java HotSpot(TM) 64-Bit Server VM/1.6.0_38
>>  INFO [main] 2013-01-17 15:52:25,841 CassandraDaemon.java (line 124) Heap size: 2020605952/2021654528
>> 
>> 
>> DEBUG [WRITE-/10.60.15.63] 2013-01-18 09:17:16,882 OutboundTcpConnection.java (line
255) attempting to connect to /10.60.15.63
>> ERROR [WRITE-/10.60.15.63] 2013-01-18 09:17:16,898 CassandraDaemon.java (line 133)
Exception in thread Thread[WRITE-/10.60.15.63,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:299)
>>         at org.apache.cassandra.net.OutboundTcpConnection.run(OutboundTcpConnection.java:138)
>> 
>> In cassandra.log:
>> DEBUG 09:17:12,574 setting auto_bootstrap to true
>> java.lang.reflect.InvocationTargetException
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:312)
>>         at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219)
>>         at org.xerial.snappy.Snappy.<clinit>(Snappy.java:44)
>>         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:81)
>>         at org.apache.cassandra.config.KSMetaData.systemKeyspace(KSMetaData.java:82)
>>         at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:461)
>>         at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:121)
>>         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:178)
>>         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:397)
>>         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:440)
>> Caused by: java.lang.UnsatisfiedLinkError: /tmp/snappy-1.0.4.1-libsnappyjava.so:
/tmp/snappy-1.0.4.1-libsnappyjava.so: failed to map segment from shared object: Operation
not permitted
>>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
>>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
>>         at java.lang.Runtime.load0(Runtime.java:770)
>>         at java.lang.System.load(System.java:1003)
>>         at org.xerial.snappy.SnappyNativeLoader.load(SnappyNativeLoader.java:39)
>>         ... 17 more
>>  WARN 09:17:13,121 Cannot initialize native Snappy library. Compression on new tables
will be disabled.
>> 
>>  
>> 
>> Could the Snappy errors cause this?
>> 
>> Thank you,
>> Traian Fratean.
>> 
> 


Mime
View raw message