Cassandra CQLSH Unrecognized COPY FROM options: maxinserterrors

Al Elizalde

Does someone knows the right syntaxis for Cassandra COPY FROM command with delimiter and maxinserterrors?

I'm trying to run it as follow:

copy keyspace.table (field1,field2,field3) FROM './iinfo_current_file3.dat' WITH DELIMITER = '|' AND MAXINSERTERRORS = '10';

I'm getting the following error:

<stdin>:2:Unrecognized COPY FROM options: maxinserterrors

I'm using:

cqlsh 5.0.1 | Cassandra 2.1.11.969 | DSE 4.8.3 | CQL spec 3.2.1 | Native protocol v3
Aaron

Your syntax is correct, but your version of Cassandra (cqlsh) is too old. MAXINSERTERRORS is a new option in the 2.1 branch as of 2.1.13: New options and better performance in cqlsh COPY.

To verify, try this:

$ grep -i MAXINSERTERRORS `which cqlsh`

If it is valid, you should see something like:

$ grep -i MAXINSERTERRORS `which cqlsh`
                 'SKIPROWS', 'SKIPCOLS', 'MAXPARSEERRORS', 'MAXINSERTERRORS', 'ERRFILE', 'TTL']
      MAXINSERTERRORS=-1      - the maximum global number of insert errors, -1 means no maximum

And in the newer versions, you might have to look in cqlsh.py:

$ grep -i MAXINSERTERRORS `which cqlsh.py`

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Cassandra Data import from remote CSV using cqlsh COPY

From Dev

Cassandra CQLSH TEXT field limit on COPY FROM CSV (field larger than field limit (131072))

From Dev

How to run Cassandra (cqlsh) from anywhere

From Dev

COPY in cqlsh of Cassandra Table Column Truncating data type double

From Dev

how to fetch json data from cassandra table using cqlsh

From Dev

Cassandra NoHostsAvailable error in cqlsh

From Dev

Getting Cassandra datacenter name in cqlsh

From Dev

Clearing Cassandra cqlsh console in Windows

From Dev

cassandra cqlsh giving wrong counts

From Dev

Cassandra default column value cqlsh

From Dev

Cassandra: cqlsh segmentation fault on mac

From Dev

Check CQL version with Cassandra and cqlsh?

From Dev

Cassandra cqlsh query fails with no error

From Dev

Cassandra default column value cqlsh

From Dev

Behat "Unrecognized options"

From Dev

COPY cassandra table from csv file

From Dev

How to copy data from Cassandra to Elasticsearch?

From Dev

How to copy data from Cassandra to Elasticsearch?

From Dev

Cassandra - Every command issued in CQLSH throws errors

From Dev

Cassandra : cqlsh not working on version 3.3 nor 2.2.5

From Dev

cqlsh to Cassandra single node running in docker

From Dev

Is there a way to display results in a pager in Cassandra cqlsh?

From Dev

How to connect to Cassandra(remotehost) using cqlsh

From Dev

Operation Time Out Error in cqlsh console of cassandra

From Dev

Cassandra - Delete Time Series Rows in cqlsh

From Dev

Can't connect to Cassandra with SSL using cqlsh

From Dev

Which version of cqlsh is compatible with Cassandra 2.1.9?

From Dev

Cassandra cqlsh "unable to connect to any servers"

From Dev

Running remote cqlsh to execute commands on Cassandra Cluster

Related Related

  1. 1

    Cassandra Data import from remote CSV using cqlsh COPY

  2. 2

    Cassandra CQLSH TEXT field limit on COPY FROM CSV (field larger than field limit (131072))

  3. 3

    How to run Cassandra (cqlsh) from anywhere

  4. 4

    COPY in cqlsh of Cassandra Table Column Truncating data type double

  5. 5

    how to fetch json data from cassandra table using cqlsh

  6. 6

    Cassandra NoHostsAvailable error in cqlsh

  7. 7

    Getting Cassandra datacenter name in cqlsh

  8. 8

    Clearing Cassandra cqlsh console in Windows

  9. 9

    cassandra cqlsh giving wrong counts

  10. 10

    Cassandra default column value cqlsh

  11. 11

    Cassandra: cqlsh segmentation fault on mac

  12. 12

    Check CQL version with Cassandra and cqlsh?

  13. 13

    Cassandra cqlsh query fails with no error

  14. 14

    Cassandra default column value cqlsh

  15. 15

    Behat "Unrecognized options"

  16. 16

    COPY cassandra table from csv file

  17. 17

    How to copy data from Cassandra to Elasticsearch?

  18. 18

    How to copy data from Cassandra to Elasticsearch?

  19. 19

    Cassandra - Every command issued in CQLSH throws errors

  20. 20

    Cassandra : cqlsh not working on version 3.3 nor 2.2.5

  21. 21

    cqlsh to Cassandra single node running in docker

  22. 22

    Is there a way to display results in a pager in Cassandra cqlsh?

  23. 23

    How to connect to Cassandra(remotehost) using cqlsh

  24. 24

    Operation Time Out Error in cqlsh console of cassandra

  25. 25

    Cassandra - Delete Time Series Rows in cqlsh

  26. 26

    Can't connect to Cassandra with SSL using cqlsh

  27. 27

    Which version of cqlsh is compatible with Cassandra 2.1.9?

  28. 28

    Cassandra cqlsh "unable to connect to any servers"

  29. 29

    Running remote cqlsh to execute commands on Cassandra Cluster

HotTag

Archive