Skip to content

Instantly share code, notes, and snippets.

@RobinUS2
Created December 1, 2015 08:46
Show Gist options
  • Save RobinUS2/8b4bed8003cefae6d547 to your computer and use it in GitHub Desktop.
Save RobinUS2/8b4bed8003cefae6d547 to your computer and use it in GitHub Desktop.
List corrupt sstables / files in Cassandra 2.0.x based on log analysis
sudo grep 'Corrupt' /var/log/cassandra/system.log | grep var | awk '{print \$4}' | grep -v corrupt | cut -c 2- | rev | cut -c 3- | rev | grep -v apache | grep -E "^/" | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment