2

我正在向/从 CF 读取和写入大量数据。

过了一会儿,我收到以下错误:

INFO [MemoryMeter:1] 2013-07-03 09:41:34,438 Memtable.java (line 238) CFS(Keyspace='amlear', ColumnFamily='tmp2_rpt_rptStats_popkeywrd_sp_G') liveRatio is 4.12192 (just-counted was 4.12192).  calculation took 168ms for 2048 columns
ERROR [ReadStage:706] 2013-07-03 09:41:56,187 CassandraDaemon.java (line 175) Exception in thread Thread[ReadStage:706,5,main]
java.lang.RuntimeException: org.apache.cassandra.db.marshal.MarshalException: invalid UTF8 bytes 37464646464646464646464638333943c08074656c65666f6e6f73206170617261746f7320792061636365736f72696f73
    at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1582)
    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)
Caused by: org.apache.cassandra.db.marshal.MarshalException: invalid UTF8 bytes 37464646464646464646464638333943c08074656c65666f6e6f73206170617261746f7320792061636365736f72696f73
    at org.apache.cassandra.db.marshal.UTF8Type.getString(UTF8Type.java:54)
    at org.apache.cassandra.dht.AbstractBounds.format(AbstractBounds.java:103)
    at org.apache.cassandra.dht.AbstractBounds.getString(AbstractBounds.java:96)
    at org.apache.cassandra.db.ColumnFamilyStore.getSequentialIterator(ColumnFamilyStore.java:1387)
    at org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(ColumnFamilyStore.java:1443)
    at org.apache.cassandra.service.RangeSliceVerbHandler.executeLocally(RangeSliceVerbHandler.java:46)
    at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(StorageProxy.java:1076)
    at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1578)
    ... 3 more

注意,我最近从 cassandra 1.1.4 升级到 cassandra 1.2.5 (我不知道它是否相关)java版本:1.6.0_32

有谁知道如何解决这个问题?

4

1 回答 1

1

引起:org.apache.cassandra.db.marshal.MarshalException:无效的UTF8字节37464646464646464646464638333943c08074656c65666f6e6f73206170617261746f7320792061636365736f726967

中间有无效的 UTF-8 字节。

c080特别是从第 17 个字节开始的 2 字节序列是无效的。不确定要使用什么字符,可能是NUL字符(应该只是00UTF-8 格式)。UTF-8 中的第一个 2 字节序列是c280,对应于 Unicode U+0080

UTF-8 编码器损坏?

于 2013-07-05T17:33:52.347 回答