You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by cyril auburtin <cy...@gmail.com> on 2012/05/07 18:21:36 UTC

cassandra1.1 can't start

The xassandra lauch command worked the first time

then now I keep getting

INFO 18:18:39,354 Starting up server gossip
ERROR 18:18:39,357 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:191)
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(Thread.java:636)
Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:803)
 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)
 at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:800)
... 5 more
ERROR 18:18:39,361 Exception in thread
Thread[StorageServiceShutdownHook,5,main]
java.lang.NullPointerException
at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1113)
 at
org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:478)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
 at java.lang.Thread.run(Thread.java:636)

I have tried rebooting, starting it alone, clearing all /var/lib/cassandra
dir
but keep getting this error

any idea?

Re: cassandra1.1 can't start

Posted by cyril auburtin <cy...@gmail.com>.
ah thx
yes that's true I forgot to say we are using 32bits Java, we should use 64
now that everything is stable with 64bit

thx

2012/5/8 Pierre Chalamet <pi...@chalamet.net>

> This looks like CASSANDRA-4201 where map() was failing with oom under 32
> bits jvm.****
>
> Jonathan provided a patch for that. You can apply it on top of 1.1.****
>
> ** **
>
> - Pierre****
>
> ** **
>
> *From:* cyril auburtin [mailto:cyril.auburtin@gmail.com]
> *Sent:* mardi 8 mai 2012 08:56
> *To:* user@cassandra.apache.org
> *Subject:* Re: cassandra1.1 can't start****
>
> ** **
>
> 8G, by default the jvm was taking 2G, and I had this error
> even with 1G, I had the error, finally 500M made it work
>
> (4 Intel Atoms, OS: ubuntu 10.04 )****
>
> 2012/5/8 Watanabe Maki <wa...@gmail.com>****
>
> How much memory do you have on the box?
> It seems you need more memory.****
>
> ** **
>
> maki****
>
> ** **
>
>
> On 2012/05/08, at 1:29, cyril auburtin <cy...@gmail.com> wrote:**
> **
>
> well I uncommented lines96&97 in cassandra-env.sh, with lower values****
>
> ** **
>
> MAX_HEAP_SIZE="500M"****
>
> HEAP_NEWSIZE="100M"****
>
> ** **
>
> seems to fix, it****
>
> ** **
>
> 2012/5/7 cyril auburtin <cy...@gmail.com>****
>
> The xassandra lauch command worked the first time****
>
> ** **
>
> then now I keep getting****
>
> ** **
>
> INFO 18:18:39,354 Starting up server gossip****
>
> ERROR 18:18:39,357 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:191)
> ****
>
> 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(Thread.java:636)****
>
> Caused by: java.io.IOException: Map failed****
>
> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:803)****
>
> 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)****
>
> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:800)****
>
> ... 5 more****
>
> ERROR 18:18:39,361 Exception in thread
> Thread[StorageServiceShutdownHook,5,main]****
>
> java.lang.NullPointerException****
>
> at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1113)****
>
> at
> org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:478)
> ****
>
> at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
> ****
>
> at java.lang.Thread.run(Thread.java:636)****
>
> ** **
>
> I have tried rebooting, starting it alone, clearing all /var/lib/cassandra
> dir****
>
> but keep getting this error****
>
> ** **
>
> any idea?****
>
> ** **
>
> ** **
>

RE: cassandra1.1 can't start

Posted by Pierre Chalamet <pi...@chalamet.net>.
This looks like CASSANDRA-4201 where map() was failing with oom under 32
bits jvm.

Jonathan provided a patch for that. You can apply it on top of 1.1.

 

- Pierre

 

From: cyril auburtin [mailto:cyril.auburtin@gmail.com] 
Sent: mardi 8 mai 2012 08:56
To: user@cassandra.apache.org
Subject: Re: cassandra1.1 can't start

 

8G, by default the jvm was taking 2G, and I had this error
even with 1G, I had the error, finally 500M made it work

(4 Intel Atoms, OS: ubuntu 10.04 )

2012/5/8 Watanabe Maki <wa...@gmail.com>

How much memory do you have on the box?
It seems you need more memory.

 

maki

 


On 2012/05/08, at 1:29, cyril auburtin <cy...@gmail.com> wrote:

well I uncommented lines96&97 in cassandra-env.sh, with lower values

 

MAX_HEAP_SIZE="500M"

HEAP_NEWSIZE="100M"

 

seems to fix, it

 

2012/5/7 cyril auburtin <cy...@gmail.com>

The xassandra lauch command worked the first time

 

then now I keep getting

 

INFO 18:18:39,354 Starting up server gossip

ERROR 18:18:39,357 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.j
ava:127)

at
org.apache.cassandra.db.commitlog.CommitLogAllocator$3.run(CommitLogAllocato
r.java:191)

at
org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLog
Allocator.java:95)

at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)

at java.lang.Thread.run(Thread.java:636)

Caused by: java.io.IOException: Map failed

at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:803)

at
org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.j
ava:119)

... 4 more

Caused by: java.lang.OutOfMemoryError: Map failed

at sun.nio.ch.FileChannelImpl.map0(Native Method)

at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:800)

... 5 more

ERROR 18:18:39,361 Exception in thread
Thread[StorageServiceShutdownHook,5,main]

java.lang.NullPointerException

at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1113)

at
org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.jav
a:478)

at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)

at java.lang.Thread.run(Thread.java:636)

 

I have tried rebooting, starting it alone, clearing all /var/lib/cassandra
dir

but keep getting this error

 

any idea?

 

 


Re: cassandra1.1 can't start

Posted by cyril auburtin <cy...@gmail.com>.
8G, by default the jvm was taking 2G, and I had this error
even with 1G, I had the error, finally 500M made it work

(4 Intel Atoms, OS: ubuntu 10.04 )

2012/5/8 Watanabe Maki <wa...@gmail.com>

> How much memory do you have on the box?
> It seems you need more memory.
>
> maki
>
>
> On 2012/05/08, at 1:29, cyril auburtin <cy...@gmail.com> wrote:
>
> well I uncommented lines96&97 in cassandra-env.sh, with lower values
>
> MAX_HEAP_SIZE="500M"
> HEAP_NEWSIZE="100M"
>
> seems to fix, it
>
> 2012/5/7 cyril auburtin <cy...@gmail.com>
>
>> The xassandra lauch command worked the first time
>>
>> then now I keep getting
>>
>> INFO 18:18:39,354 Starting up server gossip
>> ERROR 18:18:39,357 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:191)
>> 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(Thread.java:636)
>> Caused by: java.io.IOException: Map failed
>> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:803)
>>  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)
>>  at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:800)
>> ... 5 more
>> ERROR 18:18:39,361 Exception in thread
>> Thread[StorageServiceShutdownHook,5,main]
>> java.lang.NullPointerException
>> at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1113)
>>  at
>> org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:478)
>> at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>>  at java.lang.Thread.run(Thread.java:636)
>>
>> I have tried rebooting, starting it alone, clearing all
>> /var/lib/cassandra dir
>> but keep getting this error
>>
>> any idea?
>>
>
>

Re: cassandra1.1 can't start

Posted by Watanabe Maki <wa...@gmail.com>.
How much memory do you have on the box?
It seems you need more memory.

maki


On 2012/05/08, at 1:29, cyril auburtin <cy...@gmail.com> wrote:

> well I uncommented lines96&97 in cassandra-env.sh, with lower values
> 
> MAX_HEAP_SIZE="500M"
> HEAP_NEWSIZE="100M"
> 
> seems to fix, it
> 
> 2012/5/7 cyril auburtin <cy...@gmail.com>
> The xassandra lauch command worked the first time
> 
> then now I keep getting
> 
> INFO 18:18:39,354 Starting up server gossip
> ERROR 18:18:39,357 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:191)
> 	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(Thread.java:636)
> Caused by: java.io.IOException: Map failed
> 	at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:803)
> 	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)
> 	at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:800)
> 	... 5 more
> ERROR 18:18:39,361 Exception in thread Thread[StorageServiceShutdownHook,5,main]
> java.lang.NullPointerException
> 	at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1113)
> 	at org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:478)
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
> 	at java.lang.Thread.run(Thread.java:636)
> 
> I have tried rebooting, starting it alone, clearing all /var/lib/cassandra dir
> but keep getting this error
> 
> any idea?
> 

Re: cassandra1.1 can't start

Posted by cyril auburtin <cy...@gmail.com>.
well I uncommented lines96&97 in cassandra-env.sh, with lower values

MAX_HEAP_SIZE="500M"
HEAP_NEWSIZE="100M"

seems to fix, it

2012/5/7 cyril auburtin <cy...@gmail.com>

> The xassandra lauch command worked the first time
>
> then now I keep getting
>
> INFO 18:18:39,354 Starting up server gossip
> ERROR 18:18:39,357 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:191)
> 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(Thread.java:636)
> Caused by: java.io.IOException: Map failed
> at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:803)
>  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)
>  at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:800)
> ... 5 more
> ERROR 18:18:39,361 Exception in thread
> Thread[StorageServiceShutdownHook,5,main]
> java.lang.NullPointerException
> at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1113)
>  at
> org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:478)
> at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>  at java.lang.Thread.run(Thread.java:636)
>
> I have tried rebooting, starting it alone, clearing all /var/lib/cassandra
> dir
> but keep getting this error
>
> any idea?
>