[
https://issues.apache.org/jira/browse/CASSANDRA-11574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251314#comment-15251314
]
Stefania commented on CASSANDRA-11574:
--------------------------------------
I've installed Python 2.7.6 from a tarball, by following the instructions in
the first answer of this
[link|http://askubuntu.com/questions/101591/how-do-i-install-python-2-7-2-on-ubuntu],
still no luck I'm afraid.
I'm really in the dark here, let's try replacing the problematic line with
these 2 lines, maybe we get more clues:
{code}
num_processes = ImportTask.get_num_processes(16)
copy_options['numprocesses'] = int(opts.pop('numprocesses', num_processes))
{code}
As a workaround, you can also set {{num_processes}} to a reasonable default,
{{get_num_processes()}} will return the number of cores on the machine minus 1,
capped at 16, so you could set {{num_processes = 3}} on a 4 core machine for
example.
> COPY FROM command in cqlsh throws error
> ---------------------------------------
>
> Key: CASSANDRA-11574
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11574
> Project: Cassandra
> Issue Type: Bug
> Components: CQL
> Environment: Operating System: Ubuntu Server 14.04
> JDK: Oracle JDK 8 update 77
> Python: 2.7.6
> Reporter: Mahafuzur Rahman
> Assignee: Stefania
> Fix For: 3.0.6
>
>
> Any COPY FROM command in cqlsh is throwing the following error:
> "get_num_processes() takes no keyword arguments"
> Example command:
> COPY inboxdata
> (to_user_id,to_user_network,created_time,attachments,from_user_id,from_user_name,from_user_network,id,message,to_user_name,updated_time)
> FROM 'inbox.csv';
> Similar commands worked parfectly in the previous versions such as 3.0.4
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)