This looks like https://issues.apache.org/jira/browse/CASSANDRA-12497. Unfortunately I haven't had time to look into it yet, but feel free to give it a try and provide a patch.
On Tue, Jan 31, 2017 at 4:03 AM, Micha <mich...@fantasymail.de> wrote: > Hi, > > with cqlsh running on one of the cluster machines I get the following > error when issuing > > use my_keyspace; > copy demo to stdout; > > Error: > <lambda>() got an unexpected keyword argument 'encoding' > > Seems like a python driver issue. > > Whereas, if I start cqlsh in debug mode, the export works without errors. > Does debug mode switches some libs? > > > On my local machine I compiled the newest masterbranch python driver. > When connecting to the cassandra cluster and issuing the copy command, > it fails with the same error as above, this time in normal and debug mode. > The stack trace of the copy command is : > > > home:~/python-driver-master$ cqlsh --debug cassandra-dev01 > > > Using CQL driver: <module 'cassandra' from > '/usr/local/lib/python2.7/dist-packages/cassandra_ > driver-3.7.1.post0-py2.7-linux-x86_64.egg/cassandra/__init__.pyc'> > Using connect timeout: 5 seconds > Using 'utf-8' encoding > Using ssl: False > Connected to TestCluster at cassandra-dev01:9042. > [cqlsh 5.0.1 | Cassandra 3.9 | CQL spec 3.4.2 | Native protocol v4] > Use HELP for help. > cqlsh> USE spielplatz_5; > cqlsh:spielplatz_5> copy demo3 to STDOUT ; > Detected 8 core(s) > Using 7 child processes > > Starting copy of spielplatz_5.demo3 with columns [id, added, dest, id2, > source]. > Closing parent cluster sockets > Closing parent cluster sockets > Closing parent cluster sockets > Closing parent cluster sockets > Closing parent cluster sockets > Closing parent cluster sockets > Closing parent cluster sockets > Created connection to ('127.0.0.1',) with page size 1000 and timeout 10 > seconds per page > Closing queues... > Created connection to ('127.0.0.1',) with page size 1000 and timeout 10 > seconds per page > Closing queues... > Created connection to ('192.168.178.1',) with page size 1000 and timeout > 10 seconds per page > Created connection to ('192.168.178.1',) with page size 1000 and timeout > 10 seconds per page > Created connection to ('192.168.178.1',) with page size 1000 and timeout > 10 seconds per page > Created connection to ('192.168.178.1',) with page size 1000 and timeout > 10 seconds per page > Created connection to ('192.168.178.1',) with page size 1000 and timeout > 10 seconds per page > Created connection to ('127.0.0.1',) with page size 1000 and timeout 10 > seconds per page > Closing queues... > Created connection to ('127.0.0.1',) with page size 1000 and timeout 10 > seconds per page > Process ExportProcess-4: > Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in > _bootstrap > Closing queues... > self.run() > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1521, in run > self.inner_run() > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1544, in inner_run > self.start_request(token_range, info) > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1573, in start_request > metadata = > session.cluster.metadata.keyspaces[self.ks].tables[self.table] > KeyError: 'spielplatz_5' > Created connection to ('127.0.0.1',) with page size 1000 and timeout 10 > seconds per page > Closing queues... > Created connection to ('127.0.0.1',) with page size 1000 and timeout 10 > seconds per page > Closing queues... > Created connection to ('127.0.0.1',) with page size 1000 and timeout 10 > seconds per page > Closing queues... > Process ExportProcess-1: > Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in > _bootstrap > self.run() > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1521, in run > self.inner_run() > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1544, in inner_run > self.start_request(token_range, info) > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1573, in start_request > metadata = > session.cluster.metadata.keyspaces[self.ks].tables[self.table] > KeyError: 'spielplatz_5' > Process ExportProcess-7: > Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in > _bootstrap > self.run() > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1521, in run > self.inner_run() > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1544, in inner_run > self.start_request(token_range, info) > File "/usr/lib/python2.7/dist-packages/cqlshlib/copyutil.py", line > 1573, in start_request > metadata = > session.cluster.metadata.keyspaces[self.ks].tables[self.table] > KeyError: 'spielplatz_5' > Child process 14957 died with exit code 1 > Child process 14961 died with exit code 1 > Child process 14968 died with exit code 1 > Exported 5 ranges out of 513 total ranges, some records might be missing > Processed: 0 rows; Rate: 0 rows/s; Avg. rate: 0 rows/s > 0 rows exported to 0 files in 0.311 seconds. > > > > > Any hints? > > > cheers, > Michael > > -- Tyler Hobbs DataStax <http://datastax.com/>