You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Jonathan Mischo <jm...@quagility.com> on 2009/11/20 04:00:20 UTC
Re: overriding directories from command line (was: 2 problems running Cassandra as a developper)
+10 on moving to YAML for config files, as it's FAR more legible
On Nov 16, 2009, at 9:54 AM, Jonathan Ellis wrote:
> 2009/11/16 Ted Zlatanov <tz...@lifelogs.com>:
>> - allow a prefix here, e.g. /usr/local/cassandra instead of the
>> default /var
>
> -1 on this, I think it makes it too easy to shoot yourself in the
> foot.
>
>> - allow passing the prefix and any of the directories from the
>> command
>> line
>
> -1 on this too; we've already made it easy to run different config
> files from the same binaries --
> http://wiki.apache.org/cassandra/RunningCassandra -- and
> search-and-replace is easy enough.
>
>> A general configuration facility to allow named variables and
>> interpolation, similar to what the Apache Commons Configuration
>> classes
>> do for XML Property files
>> (http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/XMLPropertiesConfiguration.html
>> ),
>> would be really nice too.
>
> I'd rather move away from XML entirely to something like
> http://jyaml.sourceforge.net/tutorial.html personally.
>
> -Jonathan
>
Re: overriding directories from command line
Posted by Ted Zlatanov <tz...@lifelogs.com>.
On Thu, 19 Nov 2009 21:00:20 -0600 Jonathan Mischo <jm...@quagility.com> wrote:
JM> On Nov 16, 2009, at 9:54 AM, Jonathan Ellis wrote:
>> I'd rather move away from XML entirely to something like
>> http://jyaml.sourceforge.net/tutorial.html personally.
JM> +10 on moving to YAML for config files, as it's FAR more legible
I'd rather not worry about the format. This is why I suggest the
Apache Commons Configuration classes, which can be easily adapted to
support YAML or whatever format (or a JDBC read, etc.) in a uniform
way.
Ted