incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Cassandra 1.2.0H startup exception
Date Wed, 20 Mar 2013 10:05:44 GMT
> ERROR 16:32:16,265 Exception in thread Thread[GossipStage:1,5,main]
> java.lang.RuntimeException: The provided key was not UTF8 encoded.
>     at org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:170)
>     at org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:42)
>     at org.apache.cassandra.db.Table.apply(Table.java:380)
>     at org.apache.cassandra.db.Table.apply(Table.java:354)
>     at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:262)
>     at org.apache.cassandra.cql3.statements.ModificationStatement.executeInternal(ModificationStatement.java:119)
>     at org.apache.cassandra.cql3.QueryProcessor.processInternal(QueryProcessor.java:169)
>     at org.apache.cassandra.db.SystemTable.updatePeerInfo(SystemTable.java:268)
>     at org.apache.cassandra.service.StorageService.onChange(StorageService.java:1173)
>     at org.apache.cassandra.service.StorageService.onJoin(StorageService.java:1895)

This is confusing. It's trying to write a row into the peers table in the system KS where
the row key is meant to be an inet address. But it's being parsed as a UTF8 string and failing.


Have you changed the partitioner ? how long have you been using the OPP ?

Cheers


-----------------
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 19/03/2013, at 6:34 PM, 杨辉强 <huiqiangyang@yunrang.com> wrote:

> On 03/19/2013 11:22 AM, 杨辉强 wrote:
>> Hi, all:
>> 
>>   I am a beginner of cassandra. I have a four node cassandra group.
>>   One of my cassandra group node had been running for a week. Recently because of
too much writing and reading, it crashed.
>> I want to restart the node.
>>   While I start up cassandra, it ends up with throwing exception as follow every
time:
>> java.lang.RuntimeException: The provided key was not UTF8 encoded.
>>    at org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:170)
>>    at org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:42)
>>    at org.apache.cassandra.db.Table.apply(Table.java:380)
>>    at org.apache.cassandra.db.Table.apply(Table.java:354)
>>    at org.apache.cassandra.db.commitlog.CommitLogReplayer$1.runMayThrow(CommitLogReplayer.java:260)
>>    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>>    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)
>> 
>>  I have googled and read the archive. But I can't find answer, please help me. Thank
you very much.
>> 
> More crash log:
> 
> ERROR [main] 2013-03-18 18:02:47,095 CassandraDaemon.java (line 414) Exception encountered
during startup
> java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException:
The provided key was not UTF8 encoded.
>        at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:377)
>        at org.apache.cassandra.utils.FBUtilities.waitOnFutures(FBUtilities.java:366)
>        at org.apache.cassandra.db.commitlog.CommitLogReplayer.blockForWrites(CommitLogReplayer.java:106)
>        at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:147)
>        at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:126)
>        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:268)
>        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:397)
>        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:440)
> Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: The provided
key was not UTF8 encoded.
>        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
>        at java.util.concurrent.FutureTask.get(FutureTask.java:83)
>        at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:373)
>        ... 7 more
> Caused by: java.lang.RuntimeException: The provided key was not UTF8 encoded.
>        at org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:170)
>        at org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(OrderPreservingPartitioner.java:42)
>        at org.apache.cassandra.db.Table.apply(Table.java:380)
>        at org.apache.cassandra.db.Table.apply(Table.java:354)
>        at org.apache.cassandra.db.commitlog.CommitLogReplayer$1.runMayThrow(CommitLogReplayer.java:260)
>        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>        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)
> Caused by: java.nio.charset.MalformedInputException: Input length = 1
>        at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
>        at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:781)
>        at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:167)
>        at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:124)
>        at org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(OrderPreservingPartitioner.java:166)
>        ... 11 more
> 


Mime
View raw message