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 E906B200CBE for ; Fri, 7 Jul 2017 23:26:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E778216A156; Fri, 7 Jul 2017 21:26:05 +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 3A06C16A159 for ; Fri, 7 Jul 2017 23:26:05 +0200 (CEST) Received: (qmail 44587 invoked by uid 500); 7 Jul 2017 21:26:04 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 44424 invoked by uid 99); 7 Jul 2017 21:26:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2017 21:26:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 844F3180352 for ; Fri, 7 Jul 2017 21:26:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id LwSpSG0MsU6M for ; Fri, 7 Jul 2017 21:26:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3CA3260D9C for ; Fri, 7 Jul 2017 21:26:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7AEC0E0DA6 for ; Fri, 7 Jul 2017 21:26:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6F655246A5 for ; Fri, 7 Jul 2017 21:26:00 +0000 (UTC) Date: Fri, 7 Jul 2017 21:26:00 +0000 (UTC) From: "Junping Du (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MAPREDUCE-6246) DBOutputFormat.java appending extra semicolon to query which is incompatible with DB2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 07 Jul 2017 21:26:06 -0000 [ https://issues.apache.org/jira/browse/MAPREDUCE-6246?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Junping Du updated MAPREDUCE-6246: ---------------------------------- Resolution: Fixed Assignee: Gergely Nov=C3=A1k (was: ramtin) Hadoop Flags: Reviewed Fix Version/s: 2.8.2 Status: Resolved (was: Patch Available) I have commit the patch to trunk, branch-2, branch-2.8 and branch-2.8.2. Th= anks [~ramtinb] and [~GergelyNovak] for patch contribution! > DBOutputFormat.java appending extra semicolon to query which is incompati= ble with DB2 > -------------------------------------------------------------------------= ------------ > > Key: MAPREDUCE-6246 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-6246 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: mrv1, mrv2 > Affects Versions: 2.4.1 > Environment: OS: RHEL 5.x, RHEL 6.x, SLES 11.x > Platform: xSeries, pSeries > Browser: Firefox, IE > Security Settings: No Security, Flat file, LDAP, PAM > File System: HDFS, GPFS FPO > Reporter: ramtin > Assignee: Gergely Nov=C3=A1k > Fix For: 2.8.2 > > Attachments: MAPREDUCE-6246.002.patch, MAPREDUCE-6246.003.patch, = MAPREDUCE-6246.004.patch, MAPREDUCE-6246.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > DBoutputformat is used for writing output of mapreduce jobs to the databa= se and when used with db2 jdbc drivers it fails with following error > com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=3D-104= , SQLSTATE=3D42601, SQLERRMC=3D;;,COUNT) VALUES (?,?);END-OF-STATEMENT, DRI= VER=3D4.16.53 at com.ibm.db2.jcc.am.fd.a(fd.java:739) at com.ibm.db2.jcc.am= .fd.a(fd.java:60) at com.ibm.db2.jcc.am.fd.a(fd.java:127) > In DBOutputFormat class there is constructQuery method that generates "IN= SERT INTO" statement with semicolon(";") at the end. > Semicolon is ANSI SQL-92 standard character for a statement terminator bu= t this feature is disabled(OFF) as a default settings in IBM DB2. > Although by using -t we can turn it ON for db2. (http://www-01.ibm.com/su= pport/knowledgecenter/SSEPGG_9.7.0/com.ibm.db2.luw.admin.cmd.doc/doc/r00104= 10.html?cp=3DSSEPGG_9.7.0%2F3-6-2-0-2). But there are some products that al= ready built on top of this default setting (OFF) so by turning ON this feat= ure make them error prone. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org