Return-Path: X-Original-To: apmail-incubator-sqoop-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-sqoop-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B62009C81 for ; Thu, 1 Mar 2012 04:16:29 +0000 (UTC) Received: (qmail 1634 invoked by uid 500); 1 Mar 2012 04:16:29 -0000 Delivered-To: apmail-incubator-sqoop-dev-archive@incubator.apache.org Received: (qmail 1542 invoked by uid 500); 1 Mar 2012 04:16:28 -0000 Mailing-List: contact sqoop-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sqoop-dev@incubator.apache.org Delivered-To: mailing list sqoop-dev@incubator.apache.org Received: (qmail 1504 invoked by uid 99); 1 Mar 2012 04:16:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 04:16:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 04:16:24 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6C9CDC878C for ; Thu, 1 Mar 2012 04:16:03 +0000 (UTC) Date: Thu, 1 Mar 2012 04:16:03 +0000 (UTC) From: "Arvind Prabhakar (Commented) (JIRA)" To: sqoop-dev@incubator.apache.org Message-ID: <2123083702.6035.1330575363488.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <315703410.6023.1330574400989.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SQOOP-450) Direct MySQL import can fail when using mysqldump version 5.1.14 or above. 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/SQOOP-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219781#comment-13219781 ] Arvind Prabhakar commented on SQOOP-450: ---------------------------------------- Relevant: http://bugs.mysql.com/bug.php?id=53728 > Direct MySQL import can fail when using mysqldump version 5.1.14 or above. > -------------------------------------------------------------------------- > > Key: SQOOP-450 > URL: https://issues.apache.org/jira/browse/SQOOP-450 > Project: Sqoop > Issue Type: Bug > Components: connectors/mysql > Affects Versions: 1.4.1-incubating > Reporter: Arvind Prabhakar > Assignee: Arvind Prabhakar > > When using direct MySQL connector, the expected output of the {{mysqldump}} command is individual records as follows: > {noformat} > INSERT INTO `EMPLOYEES_MYSQL_1` VALUES (2,'Bob',100,'2009-04-20',400,'sales'); > INSERT INTO `EMPLOYEES_MYSQL_1` VALUES (3,'Fred',4000000000,'2009-01-23',15,'marketing'); > {noformat} > However, if the client version of MySQL being used is 5.1.14 or above, the output may have a warning header as follows if the tablespaces are not defined: > {noformat} > -- > -- Not dumping tablespaces as no INFORMATION_SCHEMA.FILES table on this server > -- > INSERT INTO `EMPLOYEES_MYSQL_1` VALUES (2,'Bob',100,'2009-04-20',400,'sales'); > INSERT INTO `EMPLOYEES_MYSQL_1` VALUES (3,'Fred',4000000000,'2009-01-23',15,'marketing'); > {noformat} > Notice that it contains an empty line and other lines that begin with the comment marker {{\-\-}}. > This causes the MySQLDumpMapper to error out due to unexpected format of the records being read. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira