Cassandra Data import from remote CSV using cqlsh COPY -
if possible in cassandra. data import remote csv using cqlsh copy
.
copy transc 'https://s3-us-west-2.amazonaws.com/abc/abc/abc.csv' header=true;
no, can't import data remote csv directly
but if using linux can curl+cqlsh
curl 'csv_url' | cqlsh node_ip -u username -p username -k keyspace_name -e "copy views stdin header = true"
example :
curl 'https://pastebin.com/raw/re6jpax4' | cqlsh 192.168.65.199 -u cassandra -p cassandra -k test -e "copy views stdin header = true"
Comments
Post a Comment