Re: monitoring read and write problems via log file?

2010-11-24 Thread Peter Schuller
 I was told by a colleague that read and write problems in Cassandra can be
 detected by monitoring a Cassandra log file.

What do you mean by problem? If you mean something like a hard I/O
error or corruption causing an internal error, you should get an
exception of some kind in the system log (typically
/var/log/cassandra/output.log or similar, unless otherwise
configured).

-- 
/ Peter Schuller


Can't get Cassandra to work on MAC 10.6.5

2010-11-24 Thread Paul Targett

Hi, I'm trying to get Cassandra to work on MAC 10.6.5

I'm getting the following error:

Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/cassandra/thrift/CassandraDaemon
Caused by: java.lang.ClassNotFoundException: 
org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Thrift is installed on the machine and works fine. The JAVA_HOME is installed.

Any help welcome.

PT

Re: (newbie) ColumnFamilyOutputFormat only writes one column (per key)

2010-11-24 Thread Mck

 I then went to write a m/r job that deserialises the thrift objects and
 aggregates the data accordingly into a new column family. But what i've
 found is that ColumnFamilyOutputFormat will only write out one column
 per key.

I've entered a bug for this:
 https://issues.apache.org/jira/browse/CASSANDRA-1774

~mck



signature.asc
Description: This is a digitally signed message part


Re: cassandra-cli multiline commands?

2010-11-24 Thread Eric Evans
On Wed, 2010-11-24 at 09:02 +1100, Dan Washusen wrote:
 I notice CASSANDRA-1742 mentions support for commands that span multiple
 lines in cassandra-cli.  Did it make it in?  If so what's the syntax?

Yes.  The only difference is that you're now required to terminate
commands with a semicolon.

-- 
Eric Evans
eev...@rackspace.com



Re: monitoring read and write problems via log file?

2010-11-24 Thread Edward Capriolo
On Wed, Nov 24, 2010 at 3:04 AM, Peter Schuller
peter.schul...@infidyne.com wrote:
 I was told by a colleague that read and write problems in Cassandra can be
 detected by monitoring a Cassandra log file.

 What do you mean by problem? If you mean something like a hard I/O
 error or corruption causing an internal error, you should get an
 exception of some kind in the system log (typically
 /var/log/cassandra/output.log or similar, unless otherwise
 configured).

 --
 / Peter Schuller


At the default log level of info you should look for
DroppedMessageLogger, -- backpressure is causing failures
GCInspector, --garbage collector paused
optimal bloom filter -- not sure this is critical but appears at times
Large row -- message from compaction about a really large row
STATE Down -- message from gossip about node flap
STATE UP  -- message from gossip about node flap
Digest mismatch exception --Quorum read fixed data (I do not see this much)

I use a log4j syslog appender to send info to our splunk/syslog
station.  I use splunk to count these events based on time buckets.


Cassandra won't start Java Issue Snow Leopard

2010-11-24 Thread Alberto Velandia
Hi I'm getting this error when i run bin/cassandra -f

Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/cassandra/thrift/CassandraDaemon
Caused by: java.lang.ClassNotFoundException: 
org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

which seems to be a Java version issue, I've updated my ~/.profile to the 
following:

export 
PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
[[ -s $HOME/.rvm/scripts/rvm ]]  . $HOME/.rvm/scripts/rvm  # This loads 
RVM into a shell session.

but I'm still getting the same error, I've also set the environment variable 
JAVA_HOME but I don't know If I did it right.

can anyone help me? thx




Re: Cassandra won't start Java Issue Snow Leopard

2010-11-24 Thread Norman Maurer
Change in the bin Directory and run ./cassandra -f

Bye
Norman

2010/11/24, Alberto Velandia betovelan...@gmail.com:
 Hi I'm getting this error when i run bin/cassandra -f

 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/cassandra/thrift/CassandraDaemon
 Caused by: java.lang.ClassNotFoundException:
 org.apache.cassandra.thrift.CassandraDaemon
   at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

 which seems to be a Java version issue, I've updated my ~/.profile to the
 following:

 export
 PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
 [[ -s $HOME/.rvm/scripts/rvm ]]  . $HOME/.rvm/scripts/rvm  # This
 loads RVM into a shell session.

 but I'm still getting the same error, I've also set the environment variable
 JAVA_HOME but I don't know If I did it right.

 can anyone help me? thx





Re: Cassandra won't start Java Issue Snow Leopard

2010-11-24 Thread André Fiedler
seems to be a thrift failure, try to recompile thrift on your mac:

ClassNotFoundException: org.apache.cassandra.thrift.CassandraDaemon



2010/11/24 Alberto Velandia betovelan...@gmail.com

 Hi I'm getting this error when i run bin/cassandra -f

 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/cassandra/thrift/CassandraDaemon
 Caused by: java.lang.ClassNotFoundException:
 org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

 which seems to be a Java version issue, I've updated my ~/.profile to the
 following:

 export
 PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
 [[ -s $HOME/.rvm/scripts/rvm ]]  . $HOME/.rvm/scripts/rvm  # This
 loads RVM into a shell session.

 but I'm still getting the same error, I've also set the environment
 variable JAVA_HOME but I don't know If I did it right.

 can anyone help me? thx





Re: Cassandra won't start Java Issue Snow Leopard

2010-11-24 Thread André Fiedler
ups, forget my last mail... that´s wrong... it´s an cassandra failure... :/

2010/11/24 Norman Maurer nor...@apache.org

 Change in the bin Directory and run ./cassandra -f

 Bye
 Norman

 2010/11/24, Alberto Velandia betovelan...@gmail.com:
  Hi I'm getting this error when i run bin/cassandra -f
 
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/cassandra/thrift/CassandraDaemon
  Caused by: java.lang.ClassNotFoundException:
  org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 
  which seems to be a Java version issue, I've updated my ~/.profile to the
  following:
 
  export
 
 PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
  [[ -s $HOME/.rvm/scripts/rvm ]]  . $HOME/.rvm/scripts/rvm  # This
  loads RVM into a shell session.
 
  but I'm still getting the same error, I've also set the environment
 variable
  JAVA_HOME but I don't know If I did it right.
 
  can anyone help me? thx
 
 
 



Re: Cassandra won't start Java Issue Snow Leopard

2010-11-24 Thread Alberto Velandia
I just was the email before hitting enter on compiling bjam, any ideas? I tried 
the ./cassandra -f and It didn't work


On Nov 24, 2010, at 12:46 PM, André Fiedler wrote:

 ups, forget my last mail... that´s wrong... it´s an cassandra failure... :/
 
 2010/11/24 Norman Maurer nor...@apache.org
 Change in the bin Directory and run ./cassandra -f
 
 Bye
 Norman
 
 2010/11/24, Alberto Velandia betovelan...@gmail.com:
  Hi I'm getting this error when i run bin/cassandra -f
 
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/cassandra/thrift/CassandraDaemon
  Caused by: java.lang.ClassNotFoundException:
  org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 
  which seems to be a Java version issue, I've updated my ~/.profile to the
  following:
 
  export
  PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
  [[ -s $HOME/.rvm/scripts/rvm ]]  . $HOME/.rvm/scripts/rvm  # This
  loads RVM into a shell session.
 
  but I'm still getting the same error, I've also set the environment variable
  JAVA_HOME but I don't know If I did it right.
 
  can anyone help me? thx
 
 
 
 



Re: Cassandra won't start Java Issue Snow Leopard

2010-11-24 Thread Alberto Velandia
Then I guess it has something to do with the latest update of snow leopard, 
what's weird is that If i run the cassandra_helper cassandra with the cassandra 
ruby gem it works, perhaps it actually has something to do with Thrift


On Nov 24, 2010, at 12:59 PM, Paul Targett wrote:

 I get the same problem. I've re-installed a number of times with thrift and 
 ensured all Java versions correct.
 
 Install on Ubuntu and Centos works fine from same download.
 
 PT
 
 On 24 Nov 2010, at 17:54, Alberto Velandia wrote:
 
 I just was the email before hitting enter on compiling bjam, any ideas? I 
 tried the ./cassandra -f and It didn't work
 
 
 On Nov 24, 2010, at 12:46 PM, André Fiedler wrote:
 
 ups, forget my last mail... that´s wrong... it´s an cassandra failure... :/
 
 2010/11/24 Norman Maurer nor...@apache.org
 Change in the bin Directory and run ./cassandra -f
 
 Bye
 Norman
 
 2010/11/24, Alberto Velandia betovelan...@gmail.com:
  Hi I'm getting this error when i run bin/cassandra -f
 
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/cassandra/thrift/CassandraDaemon
  Caused by: java.lang.ClassNotFoundException:
  org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 
  which seems to be a Java version issue, I've updated my ~/.profile to the
  following:
 
  export
  PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
  [[ -s $HOME/.rvm/scripts/rvm ]]  . $HOME/.rvm/scripts/rvm  # This
  loads RVM into a shell session.
 
  but I'm still getting the same error, I've also set the environment 
  variable
  JAVA_HOME but I don't know If I did it right.
 
  can anyone help me? thx
 
 
 
 
 
 
 



Re: Cassandra won't start Java Issue Snow Leopard

2010-11-24 Thread Jeremy Hanna
I think it's just a classpath issue with os x.  I've had it do that for me as 
well, but it runs just fine from IntelliJ IDEA.  I had thought my own system 
was just somehow messed up.  I'll do some checking and try to respond to the 
thread again sometime today.

On Nov 24, 2010, at 12:08 PM, Alberto Velandia wrote:

 Then I guess it has something to do with the latest update of snow leopard, 
 what's weird is that If i run the cassandra_helper cassandra with the 
 cassandra ruby gem it works, perhaps it actually has something to do with 
 Thrift
 
 
 On Nov 24, 2010, at 12:59 PM, Paul Targett wrote:
 
 I get the same problem. I've re-installed a number of times with thrift and 
 ensured all Java versions correct.
 
 Install on Ubuntu and Centos works fine from same download.
 
 PT
 
 On 24 Nov 2010, at 17:54, Alberto Velandia wrote:
 
 I just was the email before hitting enter on compiling bjam, any ideas? I 
 tried the ./cassandra -f and It didn't work
 
 
 On Nov 24, 2010, at 12:46 PM, André Fiedler wrote:
 
 ups, forget my last mail... that´s wrong... it´s an cassandra failure... :/
 
 2010/11/24 Norman Maurer nor...@apache.org
 Change in the bin Directory and run ./cassandra -f
 
 Bye
 Norman
 
 2010/11/24, Alberto Velandia betovelan...@gmail.com:
  Hi I'm getting this error when i run bin/cassandra -f
 
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/cassandra/thrift/CassandraDaemon
  Caused by: java.lang.ClassNotFoundException:
  org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 
  which seems to be a Java version issue, I've updated my ~/.profile to the
  following:
 
  export
  PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
  [[ -s $HOME/.rvm/scripts/rvm ]]  . $HOME/.rvm/scripts/rvm  # This
  loads RVM into a shell session.
 
  but I'm still getting the same error, I've also set the environment 
  variable
  JAVA_HOME but I don't know If I did it right.
 
  can anyone help me? thx
 
 
 
 
 
 
 
 



Re: Cassandra won't start Java Issue Snow Leopard

2010-11-24 Thread Jeremy Hanna
Hmmm, I tried with a fresh copy of beta3 and it works fine now.  One thing I 
had that was an issue is that in my .profile I had set a CASSANDRA_HOME a while 
back and forgot to remove it.

On Nov 24, 2010, at 12:17 PM, Eric Gilmore wrote:

 For what it's worth, I had similar errors on a Windows 7 laptop with 0.7.0 
 beta 3.  Thought something must be wrong with my classpath, but an 
 installation of 0.6.8 worked fine.
 
 --- On Wed, 11/24/10, Jeremy Hanna jeremy.hanna1...@gmail.com wrote:
 
 From: Jeremy Hanna jeremy.hanna1...@gmail.com
 Subject: Re: Cassandra won't start Java Issue Snow Leopard
 To: user@cassandra.apache.org
 Date: Wednesday, November 24, 2010, 10:12 AM
 
 I think it's just a classpath issue with os x.  I've had it do that for me as 
 well, but it runs just fine from IntelliJ IDEA.  I had thought my own system 
 was just somehow messed up.  I'll do some checking and try to respond to the 
 thread again sometime today.
 
 On Nov 24, 2010, at 12:08 PM, Alberto Velandia wrote:
 
 Then I guess it has something to do with the latest update of snow leopard, 
 what's weird is that If i run the cassandra_helper cassandra with the 
 cassandra ruby gem it works, perhaps it actually has something to do with 
 Thrift
 
 
 On Nov 24, 2010, at 12:59 PM, Paul Targett wrote:
 
 I get the same problem. I've re-installed a number of times with thrift and 
 ensured all Java versions correct.
 
 Install on Ubuntu and Centos works fine from same download.
 
 PT
 
 On 24 Nov 2010, at 17:54, Alberto Velandia wrote:
 
 I just was the email before hitting enter on compiling bjam, any ideas? I 
 tried the ./cassandra -f and It didn't work
 
 
 On Nov 24, 2010, at 12:46 PM, André Fiedler wrote:
 
 ups, forget my last mail... that´s wrong... it´s an cassandra failure... 
 :/
 
 2010/11/24 Norman Maurer nor...@apache.org
 Change in the bin Directory and run ./cassandra -f
 
 Bye
 Norman
 
 2010/11/24, Alberto Velandia betovelan...@gmail.com:
  Hi I'm getting this error when i run bin/cassandra -f
 
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/cassandra/thrift/CassandraDaemon
  Caused by: java.lang.ClassNotFoundException:
  org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 
  which seems to be a Java version issue, I've updated my ~/.profile to 
  the
  following:
 
  export
  PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
  [[ -s $HOME/.rvm/scripts/rvm ]]  . $HOME/.rvm/scripts/rvm  # This
  loads RVM into a shell session.
 
  but I'm still getting the same error, I've also set the environment 
  variable
  JAVA_HOME but I don't know If I did it right.
 
  can anyone help me? thx
 
 
 
 
 
 
 
 
 



Re: [RELEASE] 0.7.0 rc1

2010-11-24 Thread Nate McCall
The corresponding RPMs can be found on http://rpm.riptano.com

Instructions for adding the riptano repository can be found here:
http://www.riptano.com/blog/announcing-rpms-cassandra

***This is not an upgrade from the 0.6.x RPMs. See below for details

Notes:
- if you have 0.6.x RPMs installed, do not even attempt this on a
production cluster until you fully understand the ramifications of
upgrading from 0.6 to 0.7
- the name for the 0.7.x series will be cassandra07 to avoid
conflicts with upgrade/update from 0.6.x
- the RPM itself conflicts with the 0.6 package so you must uninstall
the 0.6 RPM first (it will leave your data and existing configurations
intact)
  * this may change in the future but requires modifications to some
of the scripts in contrib
- you must load/convert your schema to yaml yourself. See NEWS.txt in
the release (http://goo.gl/cCabD) for details

For any feedback or issues with the RPMs, please let me know directly.

Cheers,
-Nate

On Wed, Nov 24, 2010 at 12:28 PM, Eric Evans eev...@rackspace.com wrote:

 Tomorrow is the Thanksgiving holiday in the US, a day of parades,
 sporting events, and tryptophan-induced blackouts.  No matter where you
 live though, you'll have a little something extra to be thankful for, a
 shiny new Cassandra release!

 Now, before you scramble off to start an upgrade, I'm obligated to
 remind you that this is not an official stable release.  It's a release
 *candidate*.  My confidence in it is high but you should be suitably
 skeptical until testing it yourself. So... test it yourself, mmmkay?

 As usual, please be sure to read through the changes[1] and release
 notes[2].  Report any problems you find[3], and if you have any
 questions, don't hesitate to ask (here is good).

 Thanks!

 [1]: http://goo.gl/Y3dvE (CHANGES.txt)
 [2]: http://goo.gl/cCabD (NEWS.txt)
 [3]: https://issues.apache.org/jira/browse/CASSANDRA

 --
 Eric Evans
 eev...@rackspace.com




Re: [RELEASE] 0.7.0 rc1

2010-11-24 Thread Aaron Morton
Thank you to all involved.AaronOn 25 Nov, 2010,at 07:28 AM, Eric Evans eev...@rackspace.com wrote:
Tomorrow is the Thanksgiving holiday in the US, a day of parades,
sporting events, and tryptophan-induced blackouts.  No matter where you
live though, you'll have a little something extra to be thankful for, a
shiny new Cassandra release!

Now, before you scramble off to start an upgrade, I'm obligated to
remind you that this is not an official stable release.  It's a release
*candidate*.  My confidence in it is high but you should be suitably
skeptical until testing it yourself. So... test it yourself, mmmkay?

As usual, please be sure to read through the changes[1] and release
notes[2].  Report any problems you find[3], and if you have any
questions, don't hesitate to ask (here is good).

Thanks!

[1]: http://goo.gl/Y3dvE (CHANGES.txt)
[2]: http://goo.gl/cCabD (NEWS.txt)
[3]: https://issues.apache.org/jira/browse/CASSANDRA

-- 
Eric Evans
eev...@rackspace.com



java.lang.OutOfMemoryError: Java heap space

2010-11-24 Thread zangds
Hi,
I'm using apache-cassandra-0.7.0-beta3 , when I did some insertions into 
cassandra,I got errors that stop cassandra from working, anyone have a look on 
this?

WARN [ScheduledTasks:1] 2010-11-24 22:38:33,067 MessagingService.java (line 
515) Dropped 39 messages in the
 last 1000ms
ERROR [ReadStage:3] 2010-11-24 22:38:33,075 AbstractCassandraDaemon.java (line 
89) Fatal exception in thread
 Thread[ReadStage:3,5,main]
java.lang.OutOfMemoryError: Java heap space
ERROR [ReadStage:7] 2010-11-24 22:38:49,581 AbstractCassandraDaemon.java (line 
89) Fatal exception in thread
 Thread[ReadStage:7,5,main]
java.lang.OutOfMemoryError: Java heap space
ERROR [ReadStage:4] 2010-11-24 22:38:49,581 AbstractCassandraDaemon.java (line 
89) Fatal exception in thread
 Thread[ReadStage:4,5,main]
java.lang.OutOfMemoryError: Java heap space
ERROR [ReadStage:6] 2010-11-24 22:38:49,580 AbstractCassandraDaemon.java (line 
89) Fatal exception in thread
 Thread[ReadStage:6,5,main]
java.lang.OutOfMemoryError: Java heap space
at 
org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:89)
at 
org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:342)
at 
org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:291)
at 
org.apache.cassandra.db.columniterator.SimpleSliceReader.computeNext(SimpleSliceReader.java:79)
at 
org.apache.cassandra.db.columniterator.SimpleSliceReader.computeNext(SimpleSliceReader.java:40)
at 
com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:136)
at 
com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:131)
at 
org.apache.cassandra.db.columniterator.SSTableSliceIterator.hasNext(SSTableSliceIterator.java:108
)
at 
org.apache.commons.collections.iterators.CollatingIterator.anyHasNext(CollatingIterator.java:364)
at 
org.apache.commons.collections.iterators.CollatingIterator.hasNext(CollatingIterator.java:217)
at 
org.apache.cassandra.utils.ReducingIterator.computeNext(ReducingIterator.java:63)
at 
com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:136)
at 
com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:131)
at 
org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:122)
at 
org.apache.cassandra.db.filter.QueryFilter.collectCollatedColumns(QueryFilter.java:146)
at 
org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1208)
at 
org.apache.cassandra.db.ColumnFamilyStore.cacheRow(ColumnFamilyStore.java:1068)
at 
org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1092)
at 
org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1055)
at org.apache.cassandra.db.Table.getRow(Table.java:359)
at 
org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:63)
at 
org.apache.cassandra.service.StorageProxy$weakReadLocalCallable.call(StorageProxy.java:722)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
..
ERROR [ReadStage:2] 2010-11-24 22:38:49,580 AbstractCassandraDaemon.java (line 
89) Fatal exception in thread
 Thread[ReadStage:2,5,main]
java.lang.OutOfMemoryError: Java heap space
ERROR [pool-1-thread-2427] 2010-11-24 22:38:49,580 Cassandra.java (line 2792) 
Internal error processing mult
iget_slice
java.lang.RuntimeException: java.util.concurrent.ExecutionException: 
java.lang.OutOfMemoryError: Java heap s
pace
at 
org.apache.cassandra.service.StorageProxy.weakRead(StorageProxy.java:280)
at 
org.apache.cassandra.service.StorageProxy.readProtocol(StorageProxy.java:223)
at 
org.apache.cassandra.thrift.CassandraServer.readColumnFamily(CassandraServer.java:131)
at 
org.apache.cassandra.thrift.CassandraServer.getSlice(CassandraServer.java:227)
at 
org.apache.cassandra.thrift.CassandraServer.multigetSliceInternal(CassandraServer.java:305)
at 
org.apache.cassandra.thrift.CassandraServer.multiget_slice(CassandraServer.java:277)
at 
org.apache.cassandra.thrift.Cassandra$Processor$multiget_slice.process(Cassandra.java:2784)
at 
org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
at 
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.jav
a:167)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 

Re: java.lang.OutOfMemoryError: Java heap space

2010-11-24 Thread Jonathan Ellis
http://www.riptano.com/docs/0.6/troubleshooting/index#nodes-are-dying-with-oom-errors

On Wed, Nov 24, 2010 at 4:38 PM, zangds zan...@ihep.ac.cn wrote:
 Hi,
 I'm using apache-cassandra-0.7.0-beta3 , when I did some insertions into
 cassandra,I got errors that stop cassandra from working, anyone have a look
 on this?

 WARN [ScheduledTasks:1] 2010-11-24 22:38:33,067 MessagingService.java (line 515) Dropped 39 messages in the
  last 1000ms
 ERROR [ReadStage:3] 2010-11-24 22:38:33,075 AbstractCassandraDaemon.java (line 89) Fatal exception in thread
  Thread[ReadStage:3,5,main]
 java.lang.OutOfMemoryError: Java heap space
 ERROR [ReadStage:7] 2010-11-24 22:38:49,581 AbstractCassandraDaemon.java (line 89) Fatal exception in thread
  Thread[ReadStage:7,5,main]
 java.lang.OutOfMemoryError: Java heap space
 ERROR [ReadStage:4] 2010-11-24 22:38:49,581 AbstractCassandraDaemon.java (line 89) Fatal exception in thread
  Thread[ReadStage:4,5,main]
 java.lang.OutOfMemoryError: Java heap space
 ERROR [ReadStage:6] 2010-11-24 22:38:49,580 AbstractCassandraDaemon.java (line 89) Fatal exception in thread
  Thread[ReadStage:6,5,main]
 java.lang.OutOfMemoryError: Java heap space
 at org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:89)
 at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:342)
 at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:291)
 at org.apache.cassandra.db.columniterator.SimpleSliceReader.computeNext(SimpleSliceReader.java:79)
 at org.apache.cassandra.db.columniterator.SimpleSliceReader.computeNext(SimpleSliceReader.java:40)
 at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:136)
 at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:131)
 at org.apache.cassandra.db.columniterator.SSTableSliceIterator.hasNext(SSTableSliceIterator.java:108
 )
 at org.apache.commons.collections.iterators.CollatingIterator.anyHasNext(CollatingIterator.java:364)
 at org.apache.commons.collections.iterators.CollatingIterator.hasNext(CollatingIterator.java:217)
 at org.apache.cassandra.utils.ReducingIterator.computeNext(ReducingIterator.java:63)
 at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:136)
 at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:131)
 at org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:122)
 at org.apache.cassandra.db.filter.QueryFilter.collectCollatedColumns(QueryFilter.java:146)
 at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1208)
 at org.apache.cassandra.db.ColumnFamilyStore.cacheRow(ColumnFamilyStore.java:1068)
 at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1092)
 at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1055)
 at org.apache.cassandra.db.Table.getRow(Table.java:359)
 at org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:63)
 at org.apache.cassandra.service.StorageProxy$weakReadLocalCallable.call(StorageProxy.java:722)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:636)
 ..
 ERROR [ReadStage:2] 2010-11-24 22:38:49,580 AbstractCassandraDaemon.java (line 89) Fatal exception in thread
  Thread[ReadStage:2,5,main]
 java.lang.OutOfMemoryError: Java heap space
 ERROR [pool-1-thread-2427] 2010-11-24 22:38:49,580 Cassandra.java (line 2792) Internal error processing mult
 iget_slice
 java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap s
 pace
 at org.apache.cassandra.service.StorageProxy.weakRead(StorageProxy.java:280)
 at org.apache.cassandra.service.StorageProxy.readProtocol(StorageProxy.java:223)
 at org.apache.cassandra.thrift.CassandraServer.readColumnFamily(CassandraServer.java:131)
 at org.apache.cassandra.thrift.CassandraServer.getSlice(CassandraServer.java:227)
 at org.apache.cassandra.thrift.CassandraServer.multigetSliceInternal(CassandraServer.java:305)
 at org.apache.cassandra.thrift.CassandraServer.multiget_slice(CassandraServer.java:277)
 at org.apache.cassandra.thrift.Cassandra$Processor$multiget_slice.process(Cassandra.java:2784)
 at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2555)
 at