Return-Path: Delivered-To: apmail-hadoop-chukwa-dev-archive@minotaur.apache.org Received: (qmail 22998 invoked from network); 22 Jun 2009 18:06:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 18:06:20 -0000 Received: (qmail 37658 invoked by uid 500); 22 Jun 2009 18:06:31 -0000 Delivered-To: apmail-hadoop-chukwa-dev-archive@hadoop.apache.org Received: (qmail 37638 invoked by uid 500); 22 Jun 2009 18:06:31 -0000 Mailing-List: contact chukwa-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-dev@hadoop.apache.org Received: (qmail 37599 invoked by uid 99); 22 Jun 2009 18:06:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 18:06:31 +0000 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; Mon, 22 Jun 2009 18:06:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5D907234C004 for ; Mon, 22 Jun 2009 11:06:07 -0700 (PDT) Message-ID: <95058758.1245693967368.JavaMail.jira@brutus> Date: Mon, 22 Jun 2009 11:06:07 -0700 (PDT) From: "Eric Yang (JIRA)" To: chukwa-dev@hadoop.apache.org Subject: [jira] Updated: (CHUKWA-324) MetricsDataLoader should handle chukwa record with 0 matched fields In-Reply-To: <1526237939.1245691687552.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CHUKWA-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Yang updated CHUKWA-324: ----------------------------- Status: Patch Available (was: Open) > MetricsDataLoader should handle chukwa record with 0 matched fields > ------------------------------------------------------------------- > > Key: CHUKWA-324 > URL: https://issues.apache.org/jira/browse/CHUKWA-324 > Project: Hadoop Chukwa > Issue Type: Improvement > Components: Data Processors > Affects Versions: 0.2.0 > Reporter: Eric Yang > Assignee: Eric Yang > Priority: Critical > Fix For: 0.2.0 > > Attachments: CHUKWA-324.patch > > > As seen from postProcess.log: > 2009-06-22 12:01:17,946 TRACE pool-1-thread-2 MetricDataLoader - INSERT INTO mr_job_2059_week SET ON DUPLICATE KEY > UPDATE ; > 2009-06-22 12:01:25,957 ERROR pool-1-thread-2 MetricDataLoader - java.sql.BatchUpdateException: You have an error in > your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON > DUPLICATE KEY UPDATE' at line 1 > java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL > server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE' at line 1 > at com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:1007) > at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.run(MetricDataLoader.java:484) > at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:561) > at org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call(MetricDataLoader.java:50) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > at java.lang.Thread.run(Thread.java:619) > 2009-06-22 12:01:25,957 ERROR pool-1-thread-2 MetricDataLoader - SQLException: You have an error in your SQL syntax; > check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY > UPDATE' at line 1 > In this case, MDL should skip the record. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.