Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-12284

Cqlsh not supporting Copy command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Invalid
    • 3.3
    • Legacy/CQL
    • None
    • Debian and OSX(yosemite)

    • Normal

    Description

      I installed cqlsh for my cassandra server using pip command.

      I wanted to copy a table as CSV to my local system so I used COPY TO command but it threw me the following error.

      Traceback (most recent call last):
      File "/usr/local/bin/cqlsh", line 1133, in onecmd
      self.handle_statement(st, statementtext)
      File "/usr/local/bin/cqlsh", line 1170, in handle_statement
      return custom_handler(parsed)
      File "/usr/local/bin/cqlsh", line 1837, in do_copy
      rows = self.perform_csv_export(ks, cf, columns, fname, opts)
      File "/usr/local/bin/cqlsh", line 1956, in perform_csv_export
      csv_options, dialect_options, unrecognized_options = copyutil.parse_options(self, opts)
      AttributeError: 'module' object has no attribute 'parse_options'

      Attachments

        Activity

          People

            Unassigned Unassigned
            johri21 Abhinav Johri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: