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 43D82200C28 for ; Mon, 13 Mar 2017 19:40:24 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 42556160B6C; Mon, 13 Mar 2017 18:40: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 8BF3C160B5D for ; Mon, 13 Mar 2017 19:40:23 +0100 (CET) Received: (qmail 70974 invoked by uid 500); 13 Mar 2017 18:40:22 -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 70962 invoked by uid 99); 13 Mar 2017 18:40:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2017 18:40:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 97CFECAA25 for ; Mon, 13 Mar 2017 18:40:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GT30uqG6IbC4 for ; Mon, 13 Mar 2017 18:40:19 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D35705F5C4 for ; Mon, 13 Mar 2017 18:40:18 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id a6so67486197lfa.0 for ; Mon, 13 Mar 2017 11:40:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=6VYBGVMIRca42JKmd3NJn0OefuRN5y6c8yAGf3py7Js=; b=ZT2tdhqTU+69uym2AAGi9/c7r/5RAGtlqZvf15g1mA3TjOZVm7egxmwoAvSs/ZH6Z/ LNtvizNpZvfvhfSAXHcG0FQAQNgybm2AMOf+cWpccunMtAbB6aNrsY+CdJKUZ99znpTA tzTMMA70xifmY57EFqJi9TYIq2bSLkKShsJ6O316NoRtzASKMdya9ua2ZQlbQ4Ar8/wm ojBGc+BWaC1M76ABCgQYLWi+vmG6FVIo90p2MckzblaH86GYcNJLJrKfZLBnX97IAr8O QdJlpkSVHoJnADNVyz47MDLZ6M+d4FODc76OvX9t7cy+3tNL6TxD4ZqyKXOVB8/qBkbt metA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=6VYBGVMIRca42JKmd3NJn0OefuRN5y6c8yAGf3py7Js=; b=XlULJ/nOWsh/YuE1X2hl4nsBAlWUCSC7J+8A4zQCng534HnbHcn7bJtyobnLBTOP66 Y7nc1p4wDRjU+UZh4Fx2409/4zITivxj3J8wkGsGSaT9UuTfSKZ6PAUGEeyjPaU/NJpV 3S3bRHMWZfF00yA5tjsX6qwkYopOuwQdsKgm7q4gfBfSs6SGVIld4/nQeNxzMLZikMnx nsEJWw55h3F4JPPsBCEHWQwy2EHpA3TIm3zfL3b84d/2JWWCXyS1BG1ef39UBGee1Haa 1hVkeQUB5pKD4nmGyiwM5oiWmDtAwMuzWCelEZMXQZHmhGRVj5jkCm9MQgW2QnfOKS6X xCfQ== X-Gm-Message-State: AMke39kL80ze9RemfHMNVb5yAtgkv/RCIE2c0h4CJsGlqLjG9RJ5H+CsDlYXS3WI2SiD8w== X-Received: by 10.46.8.90 with SMTP id g26mr10690881ljd.32.1489430417889; Mon, 13 Mar 2017 11:40:17 -0700 (PDT) Received: from [100.96.2.93] (host-95-199-2-93.mobileonline.telia.com. [95.199.2.93]) by smtp.gmail.com with ESMTPSA id u137sm3764372lja.64.2017.03.13.11.40.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Mar 2017 11:40:16 -0700 (PDT) From: Oskar Kjellin Content-Type: multipart/alternative; boundary=Apple-Mail-A894A8C2-2E3C-4D70-B624-A026CCCD223E Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Mon, 13 Mar 2017 19:40:16 +0100 Subject: Re: How to obtain partition size Message-Id: References: In-Reply-To: To: user@cassandra.apache.org X-Mailer: iPhone Mail (14D27) archived-at: Mon, 13 Mar 2017 18:40:24 -0000 --Apple-Mail-A894A8C2-2E3C-4D70-B624-A026CCCD223E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable How about this tool? https://github.com/instaclustr/cassandra-sstable-tools > On 13 Mar 2017, at 17:56, Artur R wrote: >=20 > Hello! >=20 > I can't find where C* stores information about partitions size (if stores i= t at all). > So, the questions; >=20 > 1. How to obtain the size (in rows or in bytes - doesn't matter) of some p= articular partition? > I know that there is system.size_estimates table with mean_partition_size,= but it's only mean size among all partitions. >=20 > 2. How to obtain the size of entire table? > Again, does "mean_partition_size * partitions_count" (fields from system.s= ize_estimates table) =3D=3D real size of the table? >=20 > 3. Is it possible to obtain size of rows by some clustering key within so= me partition? >=20 >=20 > Maybe one can obtain these information using Java driver or from C* system= tables? >=20 >=20 >=20 --Apple-Mail-A894A8C2-2E3C-4D70-B624-A026CCCD223E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
How about this tool?

On 13 Mar 2017, at 17:56, Artur R <artur@gpnxgroup.com> wrote:

Hello!

I can't find where C* store= s information about partitions size (if stores it at all).
So, the questi= ons;

 1. How to obtain the size (in rows or in bytes - doesn't m= atter) of some particular partition?
I know that there is system.= size_estimates table with mean_partition_size, but it's= only mean size among all partitions.

 2. How to obtai= n the size of entire table?
Again, does "mean_partition_size * partitions= _count" (fields from system.size_estimates table) =3D=3D real size of= the table?

 3. Is it possible to obtain size o= f rows by some clustering key within some partition?


Maybe one can obtain these information using Java driver or= from C* system tables?



= --Apple-Mail-A894A8C2-2E3C-4D70-B624-A026CCCD223E--