brianmhess / cassandra-loader

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

CSV file generated with ".0" on the end #54

Closed adamdougal closed 8 years ago

adamdougal commented 8 years ago

When running the cassandra-unloader the csv file that gets generated is appended with .0.

E.g. when running this command:

cassandra-unloader -f output.csv -host host1 -schema "ks.table(a,b,c)"

a file called output.csv.0 is created.

Is this intended behaviour as it looks like it is hard coded https://github.com/brianmhess/cassandra-loader/blob/master/src/main/java/com/datastax/loader/CqlDelimUnload.java#L364 ?

kdp8791 commented 8 years ago

I believe this is intended. You're seeing ".0" because the default number of threads is 1, so only one file is being generated in the output. If you provide a numThreads, then you would see others like ".1", ".2", ".3", etc.

adamdougal commented 8 years ago

Ah okay, that makes sense and when digging a bit deeper through the code I can now see that!

Thanks!