incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stu Hood" <stu.h...@rackspace.com>
Subject Re: Fatal exception in with compaction
Date Fri, 04 Jun 2010 16:22:48 GMT
A "major" compaction is any compaction that sees all of the sstables for a column family. In
the context of the method you edited, that means that all of the SSTables fall into a single
bucket, and can be compacted together.

-----Original Message-----
From: "casablinca126.com" <casablinca@126.com>
Sent: Friday, June 4, 2010 6:30am
To: user@cassandra.apache.org
Subject: Re: Fatal exception in with compaction

hi,
	I have not used nodetool repair or nodetool compact . So how is MajorCompaction triggered?

------------------				 
casablinca126.com
2010-06-04

-------------------------------------------------------------
发件人:casablinca126.com
发送日期:2010-06-04 18:05:11
收件人:user
抄送:
主题:Fatal exception in with compaction

 hi ,
	I get a fatal exception with my cassandra cluster:
			java.lang.NoClassDefFoundErrororg/apache/cassandra/db/CompactionManager$4
        at org.apache.cassandra.db.CompactionManager.submitMajor(CompactionManager.java:156)
        at org.apache.cassandra.db.CompactionManager.submitMajor(CompactionManager.java:151)
        at org.apache.cassandra.db.HintedHandOffManager.deliverAllHints(HintedHandOffManager.java:205)
        at org.apache.cassandra.db.HintedHandOffManager.access$000(HintedHandOffManager.java:80)
        at org.apache.cassandra.db.HintedHandOffManager$1.runMayThrow(HintedHandOffManager.java:100)
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.db.CompactionManager$4
        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)
        ... 7 more
	I made a  modification  that , do not compact sstables whose size >10GB:
	 static Set<List<SSTableReader>> getBuckets(Iterable<SSTableReader> files,
long min)
    {
        Map<List<SSTableReader>, Long> buckets = new HashMap<List<SSTableReader>,
Long>();
        for (SSTableReader sstable : files)
        {
            long size = sstable.length();
			if(size > 10L * 1024L * 1024L * 1024L)
				continue;
Could some one help explain why this exception happened? Thanks a lot!

regards,
				
--------------
casablinca126.com
2010-06-04





Mime
View raw message