brianmhess / cassandra-loader

Delimited file loader for Cassandra
Apache License 2.0
197 stars 93 forks source link

addContactPoint vs addContactPoints #94

Open dansc14 opened 6 years ago

dansc14 commented 6 years ago

Is there a reason why the code uses Cluster.Builder.addContactPoint instead of addContactPoints? As it is now with addContactPoint, you can only provide one host address in the -host parameter, whereas if you use addContactPoints, you can pass in multiple host addresses as a string. This would remove the single point of failure that may result if the host you're attempting to contact is down, but other nodes in the cluster are still up.