Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4CD56200B98 for ; Mon, 3 Oct 2016 20:11:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4B6E1160ADC; Mon, 3 Oct 2016 18:11:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 90CBB160ACD for ; Mon, 3 Oct 2016 20:11:23 +0200 (CEST) Received: (qmail 97339 invoked by uid 500); 3 Oct 2016 18:11:20 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 97322 invoked by uid 99); 3 Oct 2016 18:11:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 18:11:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 396701A0119 for ; Mon, 3 Oct 2016 18:11:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XFU4z9li6MJe for ; Mon, 3 Oct 2016 18:11:18 +0000 (UTC) Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 7C5C25F4ED for ; Mon, 3 Oct 2016 18:11:17 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id y190so136835396vkd.3 for ; Mon, 03 Oct 2016 11:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7UihZJUVirYKzfr50nbYZeSIQCmw3DvuyfD5RQtFA2U=; b=UWawBDb0Y36Ik6I0uVyFbsa06KDHZDE/yFtMp5JnR9xpRGbsmCMvE+aDt+0ylVDt4m igfDhzgGDKs0ms6IhnEkCpkSgzSPNjEQjeB7XYUSM7TUU7jed/fY4vwvNmmD+m5aq3d2 odL/NDs4YkL82W6RDw5RLjeCs4VcZZslay1hNmJMDJMt0CuiItnuAV0IFjl61h9eR+mO kkkVcnHl1WpvK96YJo1N1bB3oVqjHfUC/DXkhi/GSpC9ViDg4PWWnOnt4XLS8eBRPmTw 0F1M2XPuO5Cs4geJtF/vi2vpqgScb5DwfGxHIEJu67lpNGqabNF03S+A6yJBHrW5hn+w rWiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7UihZJUVirYKzfr50nbYZeSIQCmw3DvuyfD5RQtFA2U=; b=KOXNHKBnntLRd+Xkcj6ByP7w9Pdz+vyg5G/7sKfEMho03EA+JEG37eN9HFnOGg/Ujh Yl8cH/P1a/cnKp4sGrNmEahOWXkfAf2ADZDikBUTdB9Wa+M9LVglz9qiC6PHEfVdXNU3 q3eG+FFs9Jdu95lTVtWx9K1D36yDJmVh2OZRF4KL1OZ593NXBY+MEMSLlyot1Fku0YDn o73UVxJIFwCbwAiqV/IPRNJRx3vbQBSHdMRSJt8RXqjj8VaYC7oCFcio3NCwy+PrKw3f MXeKWRNmzz8OUA2TvLnlimbeMLDa8Ki+MViRmF9+bVFbYh+6Oc5Hb2c5pB0lfX519xWb TJVA== X-Gm-Message-State: AA6/9Rn7Vg6YA7MKES518FF26n39W02Kdsmf4W8Rn2THNTElDweSQf3IyAKy/pkGg6Y79h0xEOlcdnyWloXPOw== X-Received: by 10.31.154.22 with SMTP id c22mr15179392vke.52.1475518276403; Mon, 03 Oct 2016 11:11:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.148.217 with HTTP; Mon, 3 Oct 2016 11:10:56 -0700 (PDT) In-Reply-To: References: From: DuyHai Doan Date: Mon, 3 Oct 2016 20:10:56 +0200 Message-ID: Subject: Re: An extremely fast cassandra table full scan utility To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a1140f5b4b991bf053df9de74 archived-at: Mon, 03 Oct 2016 18:11:24 -0000 --001a1140f5b4b991bf053df9de74 Content-Type: text/plain; charset=UTF-8 Hello Siddarth I just throw an eye over the architecture diagram. The idea of using multiple threads, one for each token range is great. It help maxing out parallelism. With https://issues.apache.org/jira/browse/CASSANDRA-11521 it would be even faster. On Mon, Oct 3, 2016 at 7:51 PM, siddharth verma wrote: > Hi, > I was working on a utility which can be used for cassandra full table > scan, at a tremendously high velocity, cassandra fast full table scan. > How fast? > The script dumped ~ 229 million rows in 116 seconds, with a cluster of > size 6 nodes. > Data transfer rates were upto 25MBps was observed on cassandra nodes. > > For some use case, a spark cluster was required, but for some reason we > couldn't create spark cluster. Hence, one may use this utility to iterate > through the entire table at very high speed. > > But now for any full scan, I use it freely for my adhoc java programs to > manipulate or aggregate cassandra data. > > You can customize the options, setting fetch size, consistency level, > degree of parallelism(number of threads) according to your need. > > You can visit https://github.com/siddv29/cfs to go through the code, see > the logic behind it, or try it in your program. > A sample program is also provided. > > I coded this utility in java. > > Bhuvan Rawal(bhu1rawal@gmail.com) and I worked on this concept. > For python you may visit his blog(http://casualreflections. > io/tech/cassandra/python/Multiprocess-Producer-Cassandra-Python) and > github(https://gist.github.com/bhuvanrawal/93c5ae6cdd020de47e0981d36d2c07 > 85) > > Looking forward to your suggestions and comments. > > P.S. Give it a try. Trust me, the iteration speed is awesome!! > It is a bare application, built asap. If you would like to contribute to > the java utility, add or build up on it, do reach out > sidd.verma29.lists@gmail.com > > Thanks and Regards, > Siddharth Verma > (previous email id on this mailing list : verma.siddharth@snapdeal.com) > --001a1140f5b4b991bf053df9de74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello Siddarth

I just throw an eye over= the architecture diagram. The idea of using multiple threads, one for each= token range is great. It help maxing out parallelism.

=
With=C2=A0https://issues.apache.org/jira/browse/CASSANDRA-11521 it would be= even faster.

On Mon, Oct 3, 2016 at 7:51 PM, siddharth verma &= lt;sidd.ve= rma29.list@gmail.com> wrote:
Hi,
I was working on a utility which can be used for= cassandra full table scan, at a tremendously high velocity, cassandra fast= full table scan.
How fast?
The script dumped ~ 229 mil= lion rows=C2=A0in 116 seconds, = with a cluster of size 6 nodes.
Data transfer rates were upto= 25MBps was observed on cassandra nodes.

For s= ome use case, a spark cluster was required, but for some reason we couldn&#= 39;t create spark cluster. Hence, one may use this utility to iterate throu= gh the entire table at very high speed.

But now fo= r any full scan, I use it freely for my adhoc java programs to manipulate o= r aggregate cassandra data.

You can customize the = options, setting fetch size, consistency level, degree of parallelism(numbe= r of threads) according to your need.

You can visi= t=C2=A0https:/= /github.com/siddv29/cfs to go through the code, see the logic behi= nd it, or try it in your program.
A sample program is also provid= ed.

I coded this utility in java.

Bhuvan Rawal(bhu1rawal@gmail.com) and I worked on this concept.=C2=A0

Looking forward to your suggestions and= comments.

P.S. Give it a try. Trust me, the itera= tion speed is awesome!!
It is a bare application, built asap. If = you would like to contribute to the java utility, add or build up on it, do= reach out sidd.verma29.lists@gmail.com

Thanks and Rega= rds,
Siddharth Verma
(previous email id on this mailing= list : v= erma.siddharth@snapdeal.com)

--001a1140f5b4b991bf053df9de74--