Several tables have been created through CQL, such as:
CREATE TABLE fileindex (recid varchar,agentno varchar,customerno varchar,recfile varchar,createtime varchar, PRIMARY KEY (recid)); CREATE INDEX on FileIndex (AGENTNO); CREATE INDEX on FileIndex (Customerno); CREATE INDEX on FileIndex (recfile); CREATE INDEX on FileIndex (createtime);
&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; then insert a number of data in the table, after running for a period of time, restart Cassandra, reported the following error:
Java.lang.ClassCastException:java.math.BigInteger cant be cast to Java.nio.ByteBufferat Org.apache.cassandra.db.marshal.UTF8Type.compare (utf8type.java:27) at Org.apache.cassandra.dht.LocalToken.compareTo (localtoken.java:45) at Org.apache.cassandra.db.DecoratedKey.compareTo (decoratedkey.java:89) at Org.apache.cassandra.db.DecoratedKey.compareTo (decoratedkey.java:38) at Java.util.TreeMap.getEntry (Treemap.java : 328) at Java.util.TreeMap.containsKey (treemap.java:209) at Java.util.TreeSet.contains (treeset.java:217) at Org.apache.cassandra.io.sstable.SSTableReader.load (sstablereader.java:396) at Org.apache.cassandra.io.sstable.SSTableReader.open (sstablereader.java:187) at Org.apache.cassandra.io.sstable.sstablereader$1.run (sstablereader.java:225) at java.util.concurrent.executors$ Runnableadapter.call (executors.java:441) at Java.util.concurrent.futuretask$sync.innerrun (FutureTask.java:303) at Java.util.concurrent.FutureTask.run (futuretask.java:138) at Java.util.concurrent.threadpoolexecutor$worker.runtaSK (threadpoolexecutor.java:886) at Java.util.concurrent.threadpoolexecutor$worker.run (ThreadPoolExecutor.java : 908) at Java.lang.Thread.run (thread.java:662) java.lang.ClassCastException:java.math.BigInteger cant is cast to Java.nio.ByteBufferat Org.apache.cassandra.db.marshal.UTF8Type.compare (utf8type.java:27) at Org.apache.cassandra.dht.LocalToken.compareTo (localtoken.java:45) at Org.apache.cassandra.db.DecoratedKey.compareTo (decoratedkey.java:89) at Org.apache.cassandra.db.DecoratedKey.compareTo (decoratedkey.java:38)
Looking for a long time, finally found the answer, the original is Cassandra1.1.1 a bug (will be repaired in Cassandra1.1.2).
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.