Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BEB4218E14 for ; Thu, 21 Apr 2016 01:26:25 +0000 (UTC) Received: (qmail 92719 invoked by uid 500); 21 Apr 2016 01:26:25 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 92679 invoked by uid 500); 21 Apr 2016 01:26:25 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 92666 invoked by uid 99); 21 Apr 2016 01:26:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 01:26:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 780712C1F5C for ; Thu, 21 Apr 2016 01:26:25 +0000 (UTC) Date: Thu, 21 Apr 2016 01:26:25 +0000 (UTC) From: "Stefania (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11574) COPY FROM command in cqlsh throws error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-11574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251067#comment-15251067 ] Stefania commented on CASSANDRA-11574: -------------------------------------- I'm really sorry but I cannot not reproduce this: not locally on my laptop running Ubuntu Trusty with python 2.7.6, nor on any of our CI servers, which run tests on Debian Jessie and Windows using Python 2.7. The line calling {{get_num_processes}} or its signature haven't changed since 3.0.4 but the implementation has. It's worth testing it, although by reading [the documentation|https://docs.python.org/2.7/reference/expressions.html#calls] I don't see why {{cap=16}} would cause this issue now and not previously. It is safe to edit copyutil.py, no other changes or compilation is required: {code} - copy_options['numprocesses'] = int(opts.pop('numprocesses', self.get_num_processes(cap=16))) + copy_options['numprocesses'] = int(opts.pop('numprocesses', self.get_num_processes(16))) {code} Would you mind testing this change to see if it fixes it? If this doesn't work, could you share your schema and a sample csv file, along with the full output obtained by running cqlsh with the {{--debug}} option? > 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)