问题
I was wondering whether its possible to pipe the configuration file for casssandra directly from the command instead of picking up the default file.
回答1:
Yes, you can invoke Cassandra with the -d
flag. That flag will allow you to specify cassandra.config=directory
, if you need to specify one on-the-fly. Cassandra will then look for the cassandra.yaml
file in that directory, instead of the default.
For other options on the cassandra
utility, check the DataStax docs.
来源:https://stackoverflow.com/questions/31294963/starting-cassandra-server-with-custom-configuration-file