From dev-return-35534-archive-asf-public=cust-asf.ponee.io@sqoop.apache.org Wed Jan 17 10:23:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id A1FC318062C for ; Wed, 17 Jan 2018 10:23:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 92196160C47; Wed, 17 Jan 2018 09:23:04 +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 D7F02160C1B for ; Wed, 17 Jan 2018 10:23:03 +0100 (CET) Received: (qmail 6640 invoked by uid 500); 17 Jan 2018 09:23:03 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 6628 invoked by uid 99); 17 Jan 2018 09:23:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2018 09:23:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 62F6CC41FC for ; Wed, 17 Jan 2018 09:23:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VGChS_WWAOGA for ; Wed, 17 Jan 2018 09:23:01 +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 8F1415F3B9 for ; Wed, 17 Jan 2018 09:23:01 +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 00720E25A1 for ; Wed, 17 Jan 2018 09:23: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 685C121305 for ; Wed, 17 Jan 2018 09:23:00 +0000 (UTC) Date: Wed, 17 Jan 2018 09:23:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@sqoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SQOOP-3278) Direct export to Netezza and encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SQOOP-3278?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1632= 8532#comment-16328532 ]=20 ASF GitHub Bot commented on SQOOP-3278: --------------------------------------- GitHub user bonnetb opened a pull request: https://github.com/apache/sqoop/pull/43 [SQOOP-3278]:Direct export to Netezza and encoding Direct mode used an OutputStream writes to an export file using UTF-8. = So, if your targeted Netezza uses an ISO encoding, non ASCII chars will be = corrupted when Netezza loads the export file. Using an OutputStreamWriter and relying on existing 'encoding' extended= parameter (SQOOP-2607) enables to set the encoding that will be used to wr= ite the export file. You can merge this pull request into a Git repository by running: $ git pull https://github.com/bonnetb/sqoop SQOOP-3278 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/sqoop/pull/43.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #43 =20 ---- commit bb960e587d9d57fdbba3c96b5c1a467166f95016 Author: Benjamin BONNET Date: 2018-01-17T09:10:30Z SQOOP-3278:use writer instead of stream and set encoding commit e65d324d001d538c2f9bdf946aa7865e879f4222 Author: Benjamin BONNET Date: 2018-01-17T09:11:19Z remove useless imports ---- > Direct export to Netezza and encoding > ------------------------------------- > > Key: SQOOP-3278 > URL: https://issues.apache.org/jira/browse/SQOOP-3278 > Project: Sqoop > Issue Type: Bug > Components: connectors > Affects Versions: 1.4.6 > Environment: HDP 2.6 > Reporter: Benjamin BONNET > Assignee: Benjamin BONNET > Priority: Major > > Hi, > I encountered an encoding issue while exporting from Hive to=C2=A0a Netez= za table containing ISO-8859-15 encoded VARCHAR. Using direct mode, non ASC= II chars are corrupted. That does not occur using non-direct mode. > This bug is quite similar to=C2=A0[https://issues.apache.org/jira/project= s/SQOOP/issues/SQOOP-2607]=C2=A0, excepted it concerns export (and not impo= rt). > Regards -- This message was sent by Atlassian JIRA (v7.6.3#76005)