Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从csv复制到cassandra数据库时出错_Cassandra_Cassandra 2.0_Datastax - Fatal编程技术网

从csv复制到cassandra数据库时出错

从csv复制到cassandra数据库时出错,cassandra,cassandra-2.0,datastax,Cassandra,Cassandra 2.0,Datastax,我正在尝试从csv复制到cassandra db,如下所示: cqlsh:customer_details> copy real_estate (street,city,zip,state) from 'C:\Users\ kiriti.k\Desktop\Sacramentorealestatetransactions.csv' WITH DELIMITER = ';' AND HEADER = TRUE; 但是得到一个错误: Starting copy of customer_det

我正在尝试从csv复制到cassandra db,如下所示:

cqlsh:customer_details> copy real_estate (street,city,zip,state) from 'C:\Users\
kiriti.k\Desktop\Sacramentorealestatetransactions.csv' WITH DELIMITER = ';' AND
HEADER = TRUE;
但是得到一个错误:

Starting copy of customer_details.real_estate with columns ['street', 'city', 'z
ip', 'state'].

Error starting import process:

    Can't pickle <type 'thread.lock'>: it's not found as thread.lock
    can only join a started process
    cqlsh:customer_details> Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Program Files\DataStax Community\python\lib\multiprocessing\forking.p
    y", line 380, in main
        prepare(preparation_data)
      File "C:\Program Files\DataStax Community\python\lib\multiprocessing\forking.p
    y", line 489, in prepare
        file, path_name, etc = imp.find_module(main_name, dirs)
    ImportError: No module named cqlsh
客户详细信息的起始副本。带有列['street'、'city'、'z]的房地产
ip“,”状态“]。
启动导入过程时出错:
无法pickle:找不到thread.lock
只能加入已启动的进程
cqlsh:客户详细信息>回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Program Files\DataStax Community\python\lib\multiprocessing\forking.p
y“,第380行,主
准备(准备数据)
文件“C:\Program Files\DataStax Community\python\lib\multiprocessing\forking.p
y“,第489行,准备就绪
文件,路径名称,etc=imp.find模块(主名称,目录)
ImportError:没有名为cqlsh的模块

我不知道这个错误是什么意思。我对卡桑德拉家很陌生。有人已经解决了这类问题。请提供帮助。

cqlsh是否能正常工作,还是只是一个复制命令问题?我怀疑这与osx上的3767有关,因为homebrew缺少依赖项,并且您正在运行windows。你可以绕开它

1) 试试brian的cassandra加载程序,它没有python依赖项

2) 安装python依赖项,如清单所示

下载 ,及 和来自 ,及 然后运行python安装setup.py


嗨,phact,我下载了brain的cassandra加载程序,但我如何运行它?它与任何文件类型都没有关联,windows无法识别它