https://github.com/smartcat-labs/custom-snitch
Example project with maven to show how you can create custom Cassandra Snitch ready for deployment onto cluster.
https://github.com/smartcat-labs/custom-snitch
Last synced: 2 months ago
JSON representation
Example project with maven to show how you can create custom Cassandra Snitch ready for deployment onto cluster.
- Host: GitHub
- URL: https://github.com/smartcat-labs/custom-snitch
- Owner: smartcat-labs
- Created: 2016-07-05T06:01:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-05T07:07:50.000Z (almost 9 years ago)
- Last Synced: 2025-02-07T11:14:40.102Z (4 months ago)
- Size: 1.95 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Custom Snitch
This is maven project with custom implementation of Cassandra Snitch as showcase how to pack it up and build jar which can be deployed to Cassandra lib folder.
### Installation
1. clone this repo with `git clone [email protected]:smartcat-labs/custom-snitch.git`
2. change version of Cassandra you use in `pom.xml` (in properties section you have `version.cassandra` and put there your version)
3. either change `SmartCatSnitch` or add your own custom implementation of Cassandra Snitch
4. run `mvn clean install` which will create `custom-snitch-0.1.0.jar` in `target` folder
5. copy `custom-snitch-0.1.0.jar` to lib folder of your Cassandra instance (`$CASSANDRA_HOME/lib`) which will be loaded to classpath when Cassandra starts
6. change `cassandra.yaml` to use custom implementation of Snitch (`endpoint_snitch: io.smartcat.SmartCatSnitch`), provide full package name, since name only snitch (like `SimpleSnitch`) must be located in `org.apache.cassandra.locator`
7. restart Cassandra service and it will start using custom Snitch