Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 734 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 734 Bytes

cassandra-data-loader

For importing large amount of data into C*. Prepare sstable files using org.apache.cassandra.io.sstable.CQLSSTableWriter. Then use sstableloader to bulk import data into C*.

Example Usage

please see this for detail steps.

sbt "\
run -k myks -t sampledata -p c1,c2 \
-c c1=varchar,c2=double,c3=date \
-f /Users/larrysu/repos/data/test/sample.csv \
-o /Users/larrysu/repos/data/test/sstable/myks/sampledata"
cqlsh> CREATE KEYSPACE myks WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
sstableloader -d 127.0.0.1 /Users/larrysu/repos/data/test/sstable/myks/sampledata