cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Fatal exception in with compaction
Date Fri, 04 Jun 2010 14:47:17 GMT
as the stacktrace suggests, HintedHandoffManager does major
compactions of just the hints columnfamily after hint delivery

2010/6/4 casablinca126.com <casablinca@126.com>:
> 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
>
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Mime
View raw message