cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lyuben Todorov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5414) Unspecified initial_token with ByteOrderedPartitioner results in java.lang.NumberFormatException: Non-hex characters
Date Fri, 13 Dec 2013 12:33:07 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847445#comment-13847445
] 

Lyuben Todorov commented on CASSANDRA-5414:
-------------------------------------------

[~pasthelod] I think you've supplied invalid tokens. With the ByteOrderedPartitioner the tokens
need to be supplied in hex. If you want to calculate hex tokens take a look at the [BOP wiki
page|http://wiki.apache.org/cassandra/ByteOrderedPartitioner], there is a python script that
calculates tokens. 

> Unspecified initial_token with ByteOrderedPartitioner results in java.lang.NumberFormatException:
Non-hex characters
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-5414
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5414
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.3
>         Environment: Oracle JDK, java 1.7.0_07, amd64 (x86_64), on a Debian Squeeze,
no virtual nodes, nothing fancy.
>            Reporter: Pas
>            Assignee: Lyuben Todorov
>            Priority: Minor
>
> Using one seed, after adding the third node the fresh node chooses an illegal token,
so it can't bootstrap itself. So I had to specify initial_token on each host manually. (Which,
as far as I know, is recommended anyway for non-random partitioners.)
> java.lang.NumberFormatException: Non-hex characters in ^@^V73797374656d5f61757468
>         at org.apache.cassandra.utils.Hex.hexToBytes(Hex.java:60)
>         at org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:167)
>         at org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:230)
>         at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:45)
>         at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:59)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message