Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 6852 invoked from network); 8 Mar 2009 00:37:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2009 00:37:20 -0000 Received: (qmail 62336 invoked by uid 500); 8 Mar 2009 00:37:17 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 62308 invoked by uid 500); 8 Mar 2009 00:37:17 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 62297 invoked by uid 99); 8 Mar 2009 00:37:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Mar 2009 16:37:17 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 00:37:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 16FC6234C48C for ; Sat, 7 Mar 2009 16:36:56 -0800 (PST) Message-ID: <733833903.1236472616079.JavaMail.jira@brutus> Date: Sat, 7 Mar 2009 16:36:56 -0800 (PST) From: "Eric Yang (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-5398) Support SQL macros in Chukwa Charting In-Reply-To: <1173616303.1236194516152.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Yang updated HADOOP-5398: ------------------------------ Attachment: HADOOP-5398.patch - Create a new Macro class for macro substitution. - Changed Aggregator to use Macro class. - Added macro substitution support to Chukwa Charting. - Added Macro test case. > Support SQL macros in Chukwa Charting > ------------------------------------- > > Key: HADOOP-5398 > URL: https://issues.apache.org/jira/browse/HADOOP-5398 > Project: Hadoop Core > Issue Type: New Feature > Components: contrib/chukwa > Environment: Redhat EL 5.1, Java 6 > Reporter: Eric Yang > Assignee: Eric Yang > Attachments: HADOOP-5398.patch > > > In Chukwa Database aggregator, we could execute SQL statement which looks like: > insert into [cluster_system_metrics] (select [avg(system_metrics)] from [system_metrics] where timestamp between [past_10_minutes] and [now]); > This new feature is to bring macro language to HICC charting. The user can write statement like: > select timestamp,host,load_5 from [system_metrics] where timestamp between [start] and [end]; > This statement will automatically expand to: > select timestamp, host, load_5 from system_metrics_2045_week where timestamp between '2009-03-02 00:00:00' and '2009-03-03 00:00:00'; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.