I noticed a couple of things about the yaml configs in Cassandra:
seed_provider:
# Addresses of hosts that are deemed contact points.
# Cassandra nodes use this list of hosts to find each other and learn
# the topology of the ring. You must change this if you are running
# multiple nodes!
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
# seeds is actually a comma-delimited list of addresses.
# Ex: "<ip1>,<ip2>,<ip3>"
- seeds: "127.0.0.1" <-- question 1 and 2
1. Why use yaml and then resort to manual parsing of the "seeds"
value? Why not let yaml do all of the parsing?
2. If "parameters" is a map (Map<String, String>) then why use the
"list" notation (dash in front of "seeds"), which really makes
"parameters" a list of maps... The actual Cassandra code then tries to
work around this list of maps behavior by explicitly grabbing the
first element in the list.