incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Coli <rc...@eventbrite.com>
Subject Re: How to use Write Consistency 'ANY' with SSTABLELOADER - DSE Cassandra 1.1.9
Date Mon, 29 Apr 2013 23:26:51 GMT
On Mon, Apr 29, 2013 at 1:17 PM, aaron morton <aaron@thelastpickle.com> wrote:
> Bulk Loader does not use CL, it's more like a repair / bootstrap.
> If you have to skip a node then use repair.

The bulk loader ("sstableloader") can ignore replica nodes via -i option :

./src/java/org/apache/cassandra/tools/BulkLoader.java
"
            options.addOption("i",  IGNORE_NODES_OPTION, "NODES",
"don't stream to this (comma separated) list of nodes");
"

This is one of the major differences between the bulkLoad JMX call and
sstableloader, if bulkLoad fails on a single replica you have to send
to all replicas again.

Also of note, it is confusing that JMX "bulkLoad" operation actually
uses sstableloader class and not BulkLoader class, and sstableloader
tool uses BulkLoader class which . Perhaps this line in BulkLoader
java should be changed from :

"    private static final String TOOL_NAME = "sstableloader"; "
to
"    private static final String TOOL_NAME = "bulkloader"; "

?

=Rob

Mime
View raw message