Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CFAF17E2C for ; Mon, 9 Feb 2015 07:52:20 +0000 (UTC) Received: (qmail 30972 invoked by uid 500); 9 Feb 2015 07:52:17 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 30928 invoked by uid 500); 9 Feb 2015 07:52:17 -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 30918 invoked by uid 99); 9 Feb 2015 07:52:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2015 07:52:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Andreas.Finke@solvians.com designates 193.239.19.161 as permitted sender) Received: from [193.239.19.161] (HELO mail.solvians.com) (193.239.19.161) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2015 07:52:12 +0000 Received: by mail.solvians.com (Postfix, from userid 500) id C84F52C6; Mon, 9 Feb 2015 07:51:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gateway-01.fra9.internal X-Spam-Level: Received: from mail.solvians.com (msex-01-fra9.corp.solvians.com [192.168.48.81]) by mail.solvians.com (Postfix) with ESMTPS id 3763C2EA for ; Mon, 9 Feb 2015 07:51:50 +0000 (UTC) Received: from MSEX-01-FRA9.corp.solvians.com ([fe80::b965:77f5:c34:7b6c]) by MSEX-01-FRA9.corp.solvians.com ([fe80::69fc:f8c5:fc2d:136d%12]) with mapi id 14.03.0195.001; Mon, 9 Feb 2015 08:51:49 +0100 From: Andreas Finke To: "user@cassandra.apache.org" Subject: RE: Compacted_at timestamp Thread-Topic: Compacted_at timestamp Thread-Index: AQHQQ6IIyjgChJSXc0akGkJeiAMNO5znKyiAgADHroY= Date: Mon, 9 Feb 2015 07:51:27 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-GB, en-US, de-DE Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.48.23] Content-Type: multipart/alternative; boundary="_000_C21F7E078D739246B3E0EC3FDF8B77927B445CFEMSEX01FRA9corps_" MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.73 on 192.168.48.23 X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 --_000_C21F7E078D739246B3E0EC3FDF8B77927B445CFEMSEX01FRA9corps_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I created a small script recently converting this timestamp into a human re= adable string and sort all entries ascending. nodetool compactionhistory |awk '{timestamp =3D strftime("%a %b %e %H:%M:%S= %Z %Y",$4 / 1000);in_m=3D$5/1024/1024;out_m=3D$6/1024/1024; printf("%s\t%s= \t%s\t%s\t%dM\t%dM\n",$4,timestamp,$2,$3,in_m,out_m)}' |sort -n Regards Andi ________________________________ From: Mark Reddy [mark.l.reddy@gmail.com] Sent: 08 February 2015 21:55 To: user@cassandra.apache.org Subject: Re: Compacted_at timestamp Hi Santo, If you are seeing the compacted_at value as timestamp and want to convert i= t to a human readable date, this is not possible via nodetool. You will alw= ays write a script to make the compactionhistory call and then convert the = output (the fourth column - compacted_at) to a readable date. If you are seeing something other than an expected timestamp value, can you= post an example of what you are getting? Regards, Mark On 8 February 2015 at 13:20, Havere Shanmukhappa, Santhosh > wro= te: When I run nodetool compactionhistory command, it displays =91compacted_at= =92 timestamp in non-readable format. Any way to read that column in readab= le format? I am using c*2.0.11 version. Thanks, Santo --_000_C21F7E078D739246B3E0EC3FDF8B77927B445CFEMSEX01FRA9corps_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
I created a small script recently converting this timestamp into a h= uman readable string and sort all entries ascending.  

nodetool compactionhistory |awk '{timestamp =3D strftime("%a %b %= e %H:%M:%S %Z %Y",$4 / 1000);in_m=3D$5/1024/1024;out_m=3D$6/1024/1024;= printf("%s\t%s\t%s\t%s\t%dM\t%dM\n",$4,timestamp,$2,$3,in_m,out_= m)}' |sort -n

Regards
Andi
From: Mark Reddy [mark.l.reddy@gmail.com]<= br> Sent: 08 February 2015 21:55
To: user@cassandra.apache.org
Subject: Re: Compacted_at timestamp

Hi Santo,

If you are seeing the compacted_at value as timestamp and want to conv= ert it to a human readable date, this is not possible via nodetool. You wil= l always write a script to make the compactionhistory call and then convert= the output (the fourth column - compacted_at) to a readable date.

If you are seeing something other than an expected timestamp value, ca= n you post an example of what you are getting? 


Regards,
Mark

On 8 February 2015 at 13:20, Havere Shanmukhappa= , Santhosh <Santhosh_HavereShanmukhappa@intuit.com> wrote:
When I run nodetool compactionhistory command, it displays =91com= pacted_at=92 timestamp in non-readable format. Any way to read that column = in readable format? I am using c*2.0.11 version.

Thanks,
Santo

--_000_C21F7E078D739246B3E0EC3FDF8B77927B445CFEMSEX01FRA9corps_--