Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-12177

sstabledump fails if sstable path includes dot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0.9
    • Legacy/Tools
    • None
    • Normal

    Description

      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):

      $ 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.
      

      Attachments

        Activity

          People

            yukim Yuki Morishita
            kw217 Keith Wansbrough
            Yuki Morishita
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: