java.lang.NoSuchMethodError --> Seems like there is inconsistency with your jar dependencies
On Fri, Sep 19, 2014 at 11:05 PM, Tim Dunphy <bluethu...@gmail.com> wrote: > Hey all, > > I'm attempting to upgrade from cassandra 2.0.10 to version 2.1.0. > > However when launching the new version I'm running into the following: > > [root@beta-new:/etc/alternatives/cassandrahome] #./bin/cassandra -f > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/usr/local/apache-cassandra-2.1.0/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/usr/local/apache-cassandra-2.1.0/lib/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type > [ch.qos.logback.classic.util.ContextSelectorStaticBinder] > INFO 21:02:28 Hostname: beta-new.jokefire.com > INFO 21:02:28 Loading settings from > file:/usr/local/apache-cassandra-2.1.0/conf/cassandra.yaml > INFO 21:02:28 Node configuration:[authenticator=AllowAllAuthenticator; > authorizer=AllowAllAuthorizer; auto_snapshot=true; > batchlog_replay_throttle_in_kb=1024; cas_contention_timeout_in_ms=1000; > client_encryption_options=<REDACTED>; cluster_name=Jokefire Cluster; > column_index_size_in_kb=64; > commitlog_directory=/var/lib/cassandra/commitlog; > commitlog_segment_size_in_mb=32; commitlog_sync=periodic; > commitlog_sync_period_in_ms=10000; compaction_throughput_mb_per_sec=16; > concurrent_reads=32; concurrent_writes=32; cross_node_timeout=false; > data_file_directories=[/var/lib/cassandra/data]; disk_failure_policy=stop; > dynamic_snitch_badness_threshold=0.1; > dynamic_snitch_reset_interval_in_ms=600000; > dynamic_snitch_update_interval_in_ms=100; endpoint_snitch=SimpleSnitch; > hinted_handoff_enabled=true; hinted_handoff_throttle_in_kb=1024; > incremental_backups=false; inter_dc_tcp_nodelay=false; > internode_compression=all; key_cache_save_period=14400; > key_cache_size_in_mb=null; listen_address=162.243.109.94; > max_hint_window_in_ms=10800000; max_hints_delivery_threads=2; > native_transport_port=9042; num_tokens=256; > partitioner=org.apache.cassandra.dht.Murmur3Partitioner; > permissions_validity_in_ms=2000; range_request_timeout_in_ms=10000; > read_request_timeout_in_ms=5000; > request_scheduler=org.apache.cassandra.scheduler.NoScheduler; > request_timeout_in_ms=10000; row_cache_save_period=0; > row_cache_size_in_mb=0; rpc_address=0.0.0.0; rpc_keepalive=true; > rpc_port=9160; rpc_server_type=sync; > saved_caches_directory=/var/lib/cassandra/saved_caches; > seed_provider=[{class_name=org.apache.cassandra.locator.SimpleSeedProvider, > parameters=[{seeds=162.243.109.94}]}]; > server_encryption_options=<REDACTED>; snapshot_before_compaction=false; > ssl_storage_port=7001; start_native_transport=true; start_rpc=true; > storage_port=7000; thrift_framed_transport_size_in_mb=15; > tombstone_failure_threshold=100000; tombstone_warn_threshold=1000; > trickle_fsync=false; trickle_fsync_interval_in_kb=10240; > truncate_request_timeout_in_ms=60000; write_request_timeout_in_ms=2000] > INFO 21:02:29 DiskAccessMode 'auto' determined to be mmap, > indexAccessMode is mmap > ERROR 21:02:29 Exception encountered during startup > java.lang.NoSuchMethodError: > org.github.jamm.MemoryMeter.withGuessing(Lorg/github/jamm/MemoryMeter$Guess;)Lorg/github/jamm/MemoryMeter; > at > org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:34) > ~[apache-cassandra-2.1.0.jar:2.1.0] > at > org.apache.cassandra.dht.Murmur3Partitioner.<clinit>(Murmur3Partitioner.java:46) > ~[apache-cassandra-2.1.0.jar:2.1.0] > at java.lang.Class.forName0(Native Method) ~[na:1.8.0] > at java.lang.Class.forName(Class.java:259) ~[na:1.8.0] > at > org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:463) > ~[apache-cassandra-2.1.0.jar:2.1.0] > at > org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:483) > ~[apache-cassandra-2.1.0.jar:2.1.0] > at > org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:429) > ~[apache-cassandra-2.1.0.jar:2.1.0] > at > org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:238) > ~[apache-cassandra-2.1.0.jar:2.1.0] > at > org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:129) > ~[apache-cassandra-2.1.0.jar:2.1.0] > at > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:109) > [apache-cassandra-2.1.0.jar:2.1.0] > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:457) > [apache-cassandra-2.1.0.jar:2.1.0] > at > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:546) > [apache-cassandra-2.1.0.jar:2.1.0] > java.lang.NoSuchMethodError: > org.github.jamm.MemoryMeter.withGuessing(Lorg/github/jamm/MemoryMeter$Guess;)Lorg/github/jamm/MemoryMeter; > at > org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:34) > at > org.apache.cassandra.dht.Murmur3Partitioner.<clinit>(Murmur3Partitioner.java:46) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:259) > at > org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:463) > at > org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:483) > at > org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:429) > at > org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:238) > at > org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:129) > at > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:109) > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:457) > at > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:546) > Exception encountered during startup: > org.github.jamm.MemoryMeter.withGuessing(Lorg/github/jamm/MemoryMeter$Guess;)Lorg/github/jamm/MemoryMeter; > > I was just wondering if I could please have some guidance in how to get > this version to launch. > > Thanks! > Tim > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B > >