get_num_processes()不接受关键字参数(CSV<-> CASSANDRA) [英] get_num_processes() takes no keyword arguments (CSV <-> CASSANDRA)

查看:87
本文介绍了get_num_processes()不接受关键字参数(CSV<-> CASSANDRA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将cassandra DB导出到csv文件,但是

I want to export a cassandra DB to a csv file, but

cqlsh:marvel> SELECT * FROM personajes;

cqlsh:marvel> SELECT * FROM personajes ;

  name       | skills
 ------------+--------
  Iron Man   | Tech  
  Spider Man | Lab

cqlsh:marvel>将角色(名称,技能)复制到"temp.csv";
get_num_processes()不接受关键字参数

cqlsh:marvel> COPY personajes (name, skills) TO 'temp.csv';
get_num_processes() takes no keyword arguments

经过以下测试:
[cqlsh 5.0.1 |卡桑德拉2.1.14 | CQL规范3.2.1 |本机协议v3]
[cqlsh 5.0.1 |卡桑德拉3.0.5 | CQL规范3.4.0 |原生协议v4]

Tested in:
[cqlsh 5.0.1 | Cassandra 2.1.14 | CQL spec 3.2.1 | Native protocol v3]
[cqlsh 5.0.1 | Cassandra 3.0.5 | CQL spec 3.4.0 | Native protocol v4]

谢谢

推荐答案

删除pylib/cqlshlib/copyutil.socopyutil.c(如果有,我没有).

Delete pylib/cqlshlib/copyutil.so and copyutil.c (if you have it - I didn't).

确切的路径取决于我的操作系统.在Ubuntu 14.04上,copyutil.so将是/usr/lib/pymodules/python2.7/cqlshlib内部的符号链接.

The exact path depends on your OS I guess. On Ubuntu 14.04 copyutil.so would be a symlink inside /usr/lib/pymodules/python2.7/cqlshlib.

只需删除或重命名它,就可以了.至少为我工作.

Just delete or rename it and you should be good to go. Worked for me at least.

供参考:这确实是一个错误,并且与 https://issues相同. .apache.org/jira/browse/CASSANDRA-11574 ,我在打开

For reference: This is indeed a bug and the same bug as https://issues.apache.org/jira/browse/CASSANDRA-11574, which I've learned after opening https://issues.apache.org/jira/browse/CASSANDRA-11816. Turned out the fix-version in the first ticket was wrong for Cassandra 2.2

这篇关于get_num_processes()不接受关键字参数(CSV<-> CASSANDRA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆