Keith Wansbrough created CASSANDRA-12177:
--------------------------------------------
Summary: sstabledump fails if sstable path includes dot
Key: CASSANDRA-12177
URL: https://issues.apache.org/jira/browse/CASSANDRA-12177
Project: Cassandra
Issue Type: Bug
Components: Tools
Reporter: Keith Wansbrough
If there is a dot in the file path passed to sstabledump, it fails with an
error {{partitioner org.apache.cassandra.dht.Murmur3Partitioner does not match
system partitioner org.apache.cassandra.dht.LocalPartitioner.}}
I can work around this by renaming the directory containing the file, but it
seems like a bug. I expected the directory name to be irrelevant.
Example (assumes you have a keyspace test containing a table called sport, but
should repro with any keyspace/table):
{code}
$ cp -a /var/lib/cassandra/data/test/sport-ebe76350474e11e6879fc5e30fbb0e96
testdir
$ sstabledump testdir/mb-1-big-Data.db
[
{
"partition" : {
"key" : [ "2" ],
"position" : 0
},
"rows" : [
{
"type" : "row",
"position" : 18,
"liveness_info" : { "tstamp" : "2016-07-11T10:15:22.766107Z" },
"cells" : [
{ "name" : "score", "value" : "Golf" },
{ "name" : "sport_type", "value" : "5" }
]
}
]
}
]
$ cp -a /var/lib/cassandra/data/test/sport-ebe76350474e11e6879fc5e30fbb0e96
test.dir
$ sstabledump test.dir/mb-1-big-Data.db
ERROR 15:02:52 Cannot open /home/centos/test.dir/mb-1-big; partitioner
org.apache.cassandra.dht.Murmur3Partitioner does not match system partitioner
org.apache.cassandra.dht.LocalPartitioner. Note that the default partitioner
starting with Cassandra 1.2 is Murmur3Partitioner, so you will need to edit
that to match your old partitioner if upgrading.
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)