When my computer reboots the cassandra service is not started. When I start it and then try to connect with opsceter I get a message
"Error loading active alerts: Alerts have not been loaded yet. There may be a connectivity problem with Cassandra."
Then I look at my services and the cassandra service has stopped again. This is the contents of my log file. Any help is greatly appreciated.
INFO [main] 2012-08-17 12:37:59,260 AbstractCassandraDaemon.java (line 100) Logging initialized
INFO [main] 2012-08-17 12:37:59,275 AbstractCassandraDaemon.java (line 121) JVM vendor/version: Java HotSpot(TM) Client VM/1.6.0_29
INFO [main] 2012-08-17 12:37:59,275 AbstractCassandraDaemon.java (line 122) Heap size: 1070399488/1070399488
INFO [main] 2012-08-17 12:37:59,275 AbstractCassandraDaemon.java (line 123) Classpath: C:\Program Files\DataStax Community\apache-cassandra\conf;C:\Program Files\DataStax Community\apache-cassandra\lib\antlr-3.2.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\apache-cassandra-1.1.2.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\apache-cassandra-clientutil-1.1.2.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\apache-cassandra-thrift-1.1.2.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\avro-1.4.0-fixes.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\avro-1.4.0-sources-fixes.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\commons-cli-1.1.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\commons-codec-1.2.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\commons-lang-2.4.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\compress-lzf-0.8.4.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\concurrentlinkedhashmap-lru-1.3.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\guava-r08.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\high-scale-lib-1.1.2.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\jackson-core-asl-1.9.2.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\jackson-mapper-asl-1.9.2.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\jamm-0.2.5.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\jline-0.9.94.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\json-simple-1.1.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\libthrift-0.7.0.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\log4j-1.2.16.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\metrics-core-2.0.3.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\servlet-api-2.5-20081211.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\slf4j-api-1.6.1.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\slf4j-log4j12-1.6.1.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\snakeyaml-1.6.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\snappy-java-1.0.4.1.jar;C:\Program Files\DataStax Community\apache-cassandra\lib\snaptree-0.1.jar;C:\Program Files\DataStax Community\apache-cassandra\build\classes\main;C:\Program Files\DataStax Community\apache-cassandra\build\classes\thrift;C:\Program Files\DataStax Community\apache-cassandra\lib\jamm-0.2.5.jar
INFO [main] 2012-08-17 12:37:59,275 CLibrary.java (line 62) JNA not found. Native methods will be disabled.
INFO [main] 2012-08-17 12:37:59,275 DatabaseDescriptor.java (line 127) Loading settings from file:/C:/Program%20Files/DataStax%20Community/apache-cassandra/conf/cassandra.yaml
INFO [main] 2012-08-17 12:37:59,400 DatabaseDescriptor.java (line 180) DiskAccessMode 'auto' determined to be standard, indexAccessMode is standard
INFO [main] 2012-08-17 12:37:59,650 DatabaseDescriptor.java (line 247) Global memtable threshold is enabled at 340MB
INFO [main] 2012-08-17 12:37:59,993 CacheService.java (line 96) Initializing key cache with capacity of 51 MBs.
INFO [main] 2012-08-17 12:38:00,009 CacheService.java (line 107) Scheduling key cache save to each 14400 seconds (going to save all keys).
INFO [main] 2012-08-17 12:38:00,009 CacheService.java (line 121) Initializing row cache with capacity of 0 MBs and provider org.apache.cassandra.cache.SerializingCacheProvider
INFO [main] 2012-08-17 12:38:00,009 CacheService.java (line 133) Scheduling row cache save to each 0 seconds (going to save all keys).
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,133 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\system\schema_columnfamilies\system-schema_columnfamilies-hd-13 (11834 bytes)
INFO [main] 2012-08-17 12:38:00,165 AutoSavingCache.java (line 107) reading saved cache C:\Program Files\DataStax Community\data\saved_caches\system-schema_columns-KeyCache
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,180 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\system\schema_columns\system-schema_columns-hd-1 (1232 bytes)
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,180 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\system\Versions\system-Versions-hd-1 (247 bytes)
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,196 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\system\schema_keyspaces\system-schema_keyspaces-hd-2 (240 bytes)
INFO [SSTableBatchOpen:2] 2012-08-17 12:38:00,196 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\system\schema_keyspaces\system-schema_keyspaces-hd-1 (246 bytes)
INFO [main] 2012-08-17 12:38:00,196 AutoSavingCache.java (line 107) reading saved cache C:\Program Files\DataStax Community\data\saved_caches\system-LocationInfo-KeyCache
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,196 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\system\LocationInfo\system-LocationInfo-hd-1 (234 bytes)
INFO [SSTableBatchOpen:2] 2012-08-17 12:38:00,196 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\system\LocationInfo\system-LocationInfo-hd-2 (163 bytes)
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,523 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\OpsCenter\pdps\OpsCenter-pdps-hd-1 (3127 bytes)
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,523 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\OpsCenter\rollups7200\OpsCenter-rollups7200-hd-1 (3680 bytes)
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,539 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\OpsCenter\events\OpsCenter-events-hd-1 (352 bytes)
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,539 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\OpsCenter\rollups300\OpsCenter-rollups300-hd-1 (74934 bytes)
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,555 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\OpsCenter\events_timeline\OpsCenter-events_timeline-hd-1 (144 bytes)
INFO [SSTableBatchOpen:1] 2012-08-17 12:38:00,570 SSTableReader.java (line 170) Opening C:\Program Files\DataStax Community\data\data\OpsCenter\rollups60\OpsCenter-rollups60-hd-1 (306348 bytes)
INFO [main] 2012-08-17 12:38:00,570 AbstractCassandraDaemon.java (line 208) completed pre-loading (5 keys) key cache.
INFO [main] 2012-08-17 12:38:00,695 CommitLog.java (line 129) Replaying C:\Program Files\DataStax Community\data\commitlog\CommitLog-37347190296120.log, C:\Program Files\DataStax Community\data\commitlog\CommitLog-2334430387070.log, C:\Program Files\DataStax Community\data\commitlog\CommitLog-2361644594769.log, C:\Program Files\DataStax Community\data\commitlog\CommitLog-2361646221188.log
INFO [main] 2012-08-17 12:38:00,711 CommitLogReplayer.java (line 119) Replaying C:\Program Files\DataStax Community\data\commitlog\CommitLog-37347190296120.log
INFO [main] 2012-08-17 12:38:00,711 CommitLogReplayer.java (line 272) Finished reading C:\Program Files\DataStax Community\data\commitlog\CommitLog-37347190296120.log
INFO [main] 2012-08-17 12:38:00,711 CommitLogReplayer.java (line 119) Replaying C:\Program Files\DataStax Community\data\commitlog\CommitLog-2334430387070.log
INFO [main] 2012-08-17 12:38:00,726 CommitLogReplayer.java (line 272) Finished reading C:\Program Files\DataStax Community\data\commitlog\CommitLog-2334430387070.log
INFO [main] 2012-08-17 12:38:00,726 CommitLogReplayer.java (line 119) Replaying C:\Program Files\DataStax Community\data\commitlog\CommitLog-2361644594769.log
INFO [main] 2012-08-17 12:38:00,726 CommitLogReplayer.java (line 272) Finished reading C:\Program Files\DataStax Community\data\commitlog\CommitLog-2361644594769.log
INFO [main] 2012-08-17 12:38:00,726 CommitLogReplayer.java (line 119) Replaying C:\Program Files\DataStax Community\data\commitlog\CommitLog-2361646221188.log
INFO [MemoryMeter:1] 2012-08-17 12:38:01,569 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups60') liveRatio is 9.240695835529785 (just-counted was 9.240695835529785). calculation took 16ms for 271 columns
WARN [MemoryMeter:1] 2012-08-17 12:38:01,662 Memtable.java (line 197) setting live ratio to minimum of 1.0 instead of 0.8596524972751171
INFO [MemoryMeter:1] 2012-08-17 12:38:01,662 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='pdps') liveRatio is 1.0 (just-counted was 1.0). calculation took 0ms for 80 columns
INFO [MemoryMeter:1] 2012-08-17 12:38:01,678 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups300') liveRatio is 11.856372093023255 (just-counted was 11.856372093023255). calculation took 16ms for 125 columns
INFO [MemoryMeter:1] 2012-08-17 12:38:01,693 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups60') liveRatio is 7.774496762931701 (just-counted was 6.308297690333618). calculation took 15ms for 646 columns
WARN [MemoryMeter:1] 2012-08-17 12:38:01,725 Memtable.java (line 197) setting live ratio to minimum of 1.0 instead of 0.4272240632169258
INFO [MemoryMeter:1] 2012-08-17 12:38:01,725 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='pdps') liveRatio is 1.0 (just-counted was 1.0). calculation took 0ms for 80 columns
INFO [MemoryMeter:1] 2012-08-17 12:38:01,725 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups300') liveRatio is 10.287384757080359 (just-counted was 8.718397421137462). calculation took 0ms for 200 columns
INFO [MemoryMeter:1] 2012-08-17 12:38:01,771 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups60') liveRatio is 6.151840336440193 (just-counted was 4.529183909948684). calculation took 15ms for 1442 columns
INFO [MemoryMeter:1] 2012-08-17 12:38:01,787 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups300') liveRatio is 8.369011104915987 (just-counted was 6.450637452751618). calculation took 16ms for 356 columns
WARN [MemoryMeter:1] 2012-08-17 12:38:01,803 Memtable.java (line 197) setting live ratio to minimum of 1.0 instead of 0.17088962528677032
INFO [MemoryMeter:1] 2012-08-17 12:38:01,803 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='pdps') liveRatio is 1.0 (just-counted was 1.0). calculation took 16ms for 80 columns
INFO [MemoryMeter:1] 2012-08-17 12:38:01,849 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups60') liveRatio is 5.1724532857163865 (just-counted was 4.193066234992581). calculation took 46ms for 2649 columns
WARN [MemoryMeter:1] 2012-08-17 12:38:01,849 Memtable.java (line 197) setting live ratio to minimum of 1.0 instead of 0.10680601580423145
INFO [MemoryMeter:1] 2012-08-17 12:38:01,849 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='pdps') liveRatio is 1.0 (just-counted was 1.0). calculation took 0ms for 80 columns
INFO [MemoryMeter:1] 2012-08-17 12:38:01,865 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups300') liveRatio is 6.582353994160256 (just-counted was 4.795696883404524). calculation took 16ms for 675 columns
INFO [main] 2012-08-17 12:38:01,881 CommitLogReplayer.java (line 272) Finished reading C:\Program Files\DataStax Community\data\commitlog\CommitLog-2361646221188.log
INFO [main] 2012-08-17 12:38:01,881 CommitLogReplayer.java (line 103) Skipped 161571 mutations from unknown (probably removed) CF with id 1008
INFO [main] 2012-08-17 12:38:01,896 ColumnFamilyStore.java (line 643) Enqueuing flush of Memtable-Versions@30009024(119/148 serialized/live bytes, 3 ops)
INFO [main] 2012-08-17 12:38:01,896 ColumnFamilyStore.java (line 643) Enqueuing flush of Memtable-pdps@22991148(172612/215765 serialized/live bytes, 1760 ops)
INFO [main] 2012-08-17 12:38:01,896 ColumnFamilyStore.java (line 643) Enqueuing flush of Memtable-rollups60@13858055(151130/977141 serialized/live bytes, 4318 ops)
INFO [main] 2012-08-17 12:38:01,896 ColumnFamilyStore.java (line 643) Enqueuing flush of Memtable-rollups300@2345702(38098/313468 serialized/live bytes, 886 ops)
INFO [FlushWriter:1] 2012-08-17 12:38:01,896 Memtable.java (line 266) Writing Memtable-Versions@30009024(119/148 serialized/live bytes, 3 ops)
INFO [MemoryMeter:1] 2012-08-17 12:38:01,943 Memtable.java (line 213) CFS(Keyspace='OpsCenter', ColumnFamily='rollups60') liveRatio is 5.016928687455559 (just-counted was 4.861404089194733). calculation took 62ms for 4315 columns
INFO [FlushWriter:1] 2012-08-17 12:38:01,974 Memtable.java (line 307) Completed flushing C:\Program Files\DataStax Community\data\data\system\Versions\system-Versions-hd-2-Data.db (247 bytes) for commitlog position ReplayPosition(segmentId=2653839004105, position=0)
INFO [FlushWriter:1] 2012-08-17 12:38:01,990 Memtable.java (line 266) Writing Memtable-pdps@22991148(172612/215765 serialized/live bytes, 1760 ops)
INFO [FlushWriter:1] 2012-08-17 12:38:02,021 Memtable.java (line 307) Completed flushing C:\Program Files\DataStax Community\data\data\OpsCenter\pdps\OpsCenter-pdps-hd-2-Data.db (3127 bytes) for commitlog position ReplayPosition(segmentId=2653839004105, position=0)
INFO [FlushWriter:1] 2012-08-17 12:38:02,021 Memtable.java (line 266) Writing Memtable-rollups60@13858055(151130/947760 serialized/live bytes, 4318 ops)
INFO [FlushWriter:1] 2012-08-17 12:38:02,115 Memtable.java (line 307) Completed flushing C:\Program Files\DataStax Community\data\data\OpsCenter\rollups60\OpsCenter-rollups60-hd-2-Data.db (49704 bytes) for commitlog position ReplayPosition(segmentId=2653839004105, position=0)
INFO [FlushWriter:1] 2012-08-17 12:38:02,115 Memtable.java (line 266) Writing Memtable-rollups300@2345702(38098/313468 serialized/live bytes, 886 ops)
INFO [FlushWriter:1] 2012-08-17 12:38:02,161 Memtable.java (line 307) Completed flushing C:\Program Files\DataStax Community\data\data\OpsCenter\rollups300\OpsCenter-rollups300-hd-2-Data.db (14671 bytes) for commitlog position ReplayPosition(segmentId=2653839004105, position=0)
INFO [main] 2012-08-17 12:38:02,161 CommitLog.java (line 131) Log replay complete, 6967 replayed mutations
INFO [main] 2012-08-17 12:38:02,286 StorageService.java (line 423) Cassandra version: 1.1.2
INFO [main] 2012-08-17 12:38:02,286 StorageService.java (line 424) Thrift API version: 19.32.0
INFO [main] 2012-08-17 12:38:02,286 StorageService.java (line 425) CQL supported versions: 2.0.0,3.0.0-beta1 (default: 2.0.0)
INFO [main] 2012-08-17 12:38:02,333 StorageService.java (line 455) Loading persisted ring state
INFO [main] 2012-08-17 12:38:02,333 StorageService.java (line 536) Starting up server gossip
INFO [main] 2012-08-17 12:38:02,349 ColumnFamilyStore.java (line 643) Enqueuing flush of Memtable-LocationInfo@30438140(41/51 serialized/live bytes, 1 ops)
INFO [FlushWriter:1] 2012-08-17 12:38:02,349 Memtable.java (line 266) Writing Memtable-LocationInfo@30438140(41/51 serialized/live bytes, 1 ops)
ERROR [COMMIT-LOG-ALLOCATOR] 2012-08-17 12:38:02,380 AbstractCassandraDaemon.java (line 134) Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main]
java.io.IOError: java.io.IOException: Map failed
at org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:127)
at org.apache.cassandra.db.commitlog.CommitLogAllocator$3.run(CommitLogAllocator.java:203)
at org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLogAllocator.java:95)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(Unknown Source)
at org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:119)
... 4 more
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method)
... 6 more
INFO [FlushWriter:1] 2012-08-17 12:38:02,395 Memtable.java (line 307) Completed flushing C:\Program Files\DataStax Community\data\data\system\LocationInfo\system-LocationInfo-hd-3-Data.db (80 bytes) for commitlog position ReplayPosition(segmentId=2653839004105, position=363)
INFO [main] 2012-08-17 12:38:02,411 MessagingService.java (line 284) Starting Messaging Service on port 7000
ERROR [main] 2012-08-17 12:38:02,427 AbstractCassandraDaemon.java (line 370) Exception encountered during startup
java.util.concurrent.RejectedExecutionException
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(Unknown Source)
at org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.scheduleWithFixedDelay(DebuggableScheduledThreadPoolExecutor.java:63)
at org.apache.cassandra.db.HintedHandOffManager.start(HintedHandOffManager.java:122)
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:558)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:526)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:418)
at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:231)
at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
INFO [StorageServiceShutdownHook] 2012-08-17 12:38:02,427 Gossiper.java (line 1133) Announcing shutdown
INFO [StorageServiceShutdownHook] 2012-08-17 12:38:03,441 MessagingService.java (line 534) Waiting for messaging service to quiesce
INFO [ACCEPT-localhost/127.0.0.1] 2012-08-17 12:38:03,441 MessagingService.java (line 690) MessagingService shutting down server thread.
