https://github.com/multani/cassandra-external-file-seed-provider
Lookup Cassandra seeds in an external file
https://github.com/multani/cassandra-external-file-seed-provider
Last synced: about 1 year ago
JSON representation
Lookup Cassandra seeds in an external file
- Host: GitHub
- URL: https://github.com/multani/cassandra-external-file-seed-provider
- Owner: multani
- Created: 2019-08-02T09:09:45.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-07-07T07:07:22.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T02:24:31.202Z (over 1 year ago)
- Language: Java
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Cassandra seed provider using a dedicated file
This is a simple Cassandra seed provider that fetches the list of seeds from an externally managed file, containing one seed address per-line.
You can use it by configuring Cassandra with:
```yaml
seed_provider:
- class_name: info.multani.cassandra.ExternalFileSeedProvider
parameters:
- filename: /etc/cassandra/seeds.list
```
You can use which ever tool you want to keep the content of the seeds file up-to-date. The file is regularly read to fetch the latest seeds:
```
$ cat /etc/cassandra/seeds.list
# A list of Cassandra seeds
# The first seed
172.20.15.6
# Another seed
172.20.15.7
172.20.15.8 # end of line comments are stripped
```
The provider skips empty lines, and everything that comes after a `#` comment character.
## How to use?
* Download [a `.jar` release](https://github.com/multani/cassandra-external-file-seed-provider/releases)
* Save the `.jar` file in the `lib/` directory of your Cassandra installation
* Configure Cassandra as shown above
* Keep your new seeds file updated!