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

Debian package does not create /var/lib/cassandra/data

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None
    • Environment:

      Ubuntu 11.10

      Description

      I installed Cassandra using the Debian packages as described here: http://wiki.apache.org/cassandra/DebianPackaging

      When trying to start Cassandra using /etc/init.d/cassandra start I get this error: java.io.IOError: java.io.IOException: unable to mkdirs /var/lib/cassandra/data

      The directory /var/lib/cassandra exists, but the directory /var/lib/cassandra/data does not.

      I would assume the data directory should have been created with the correct permissions, but it was not.

      However, I tried creating /var/lib/cassandra/data and setting it the permissions to 666 and setting the user/group to cassandra/cassandra, and now I get this error:
      java.lang.AssertionError: Directory /var/lib/cassandra/data is not accessible.

      So what could possibly be the problem here?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jfenwick Jacob Fenwick
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: