Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import .csv file into cassandra

Tags:

csv

cassandra

I want to import a CSV file into cassandra. When I write this command on cassandra cqlsh, I got an error: command is:

COPY table ( ID,  name) FROM 'table.csv' WITH HEADER = TRUE;

and the error:

Can't open 'table.csv' for reading: [Errno 2] No such file or directory: 'table.csv'

Can any one tell me what does it mean?

like image 210
Anse danesh Avatar asked Aug 10 '13 07:08

Anse danesh


1 Answers

table.csv file should be in cassandra installation directory(where you run cqlsh).

File name is case senstive, so check with orginal file name case.

like image 114
karthi Avatar answered Oct 04 '22 21:10

karthi