Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

sunandosamaddar avatar image
sunandosamaddar asked Erick Ramirez answered

cqlsh COPY throws "ServerError - java.lang.AssertionError"

Hi, I'm using dse-6.8.19 for practice questions in a tutorial. When I try the following command, I see an error like this, but the same command worked with an Apache Cassandra distribution downloaded with apt.

cqlsh:killrvideo> copy videos (id, added_date, title)
              ... from '/home/sunando/ds201-6.0-labwork/videos.csv'
              ... with HEADER=TRUE;
Using 7 child processes

Starting copy of killrvideo.videos with columns [id, added_date, title].
Failed to import 5 rows: ServerError - java.lang.AssertionError,  will retry later, attempt 1 of 5
Failed to import 5 rows: ServerError - java.lang.AssertionError,  will retry later, attempt 2 of 5
Failed to import 5 rows: ServerError - java.lang.AssertionError,  will retry later, attempt 3 of 5
Failed to import 5 rows: ServerError - java.lang.AssertionError,  will retry later, attempt 4 of 5
Failed to import 5 rows: ServerError - java.lang.AssertionError,  given up after 5 attempts
Failed to process 5 rows; failed rows written to import_killrvideo_videos.err
Processed: 5 rows; Rate:       1 rows/s; Avg. rate:       1 rows/s
0 rows imported from 1 files in 4.140 seconds (0 skipped).
cqlsh
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

There isn't enough information in your post to investigate the problem.

Please update your original question with steps to replicate the issue including:

  • the table schema
  • sample CSV data that replicates the problem

Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.