Cassandra: Exiting due to error while processing commit log during initialization

前端 未结 4 1934
暗喜
暗喜 2020-12-29 03:28

I was loading a large CSV into Cassandra using cassandra-loader.

The VM ran out of disk space during this process and crashed. I allocated more disk space to the VM

4条回答
  •  旧巷少年郎
    2020-12-29 03:45

    This is how I fixed the problem with commit logs. You should only do this if you don't care about preserving the state of your commit logs.

    Try to restart cassandra using

    sudo systemctl restart cassandra

    Then I check

    systemctl status cassandra

    and see that the status is 'exited' so there is a problem. Check the logs for cassandra using

    sudo less /var/log/cassandra/system.log

    and see org.apache.cassandra.db.commitlog.CommitLogReplayer$CommitLogReplayException: Could not read commit log descriptor in file /var/lib/cassandra/commitlog/CommitLog-6-1498210233635.log

    Because I don't care about preserving the state of Cassandra I delete all of the commit logs and it now boots up fine

    sudo rm /var/lib/cassandra/commitlog/CommitLog* sudo systemctl restart cassandra

    systemctl status cassandra (should confirm that it it now running)

提交回复
热议问题