cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefania (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-12284) Cqlsh not supporting Copy command
Date Mon, 25 Jul 2016 00:21:20 GMT


Stefania commented on CASSANDRA-12284:

I don't know who is responsible for the pip cqlsh packages, [~mshuler] any ideas?

This call stack makes no sense to me: perform_csv_export was removed before the copy module
was renamed to copyutil, so I really don't understand which version it might be.

Anyway, [~johri21], can you remove the version of cqlsh that was installed with pip and instead
install Cassandra, using the same version as the server, and use the cqlsh that ships with
the Cassandra package?

> Cqlsh not supporting Copy command
> ---------------------------------
>                 Key: CASSANDRA-12284
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>         Environment: Debian and OSX(yosemite)
>            Reporter: Abhinav Johri
>             Fix For: 3.3
> 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,
> AttributeError: 'module' object has no attribute 'parse_options'

This message was sent by Atlassian JIRA

View raw message