From common-issues-return-148466-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Feb 16 22:11:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5B89B180647 for ; Fri, 16 Feb 2018 22:11:11 +0100 (CET) Received: (qmail 99583 invoked by uid 500); 16 Feb 2018 21:11:10 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 99572 invoked by uid 99); 16 Feb 2018 21:11:10 -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, 16 Feb 2018 21:11:10 +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 CD2B81800CF for ; Fri, 16 Feb 2018 21:11:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, 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 FQZpeoWvSu3P for ; Fri, 16 Feb 2018 21:11:08 +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 D29895F473 for ; Fri, 16 Feb 2018 21:11:07 +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 4F4A8E030E for ; Fri, 16 Feb 2018 21:11:06 +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 40F6421E5E for ; Fri, 16 Feb 2018 21:11:03 +0000 (UTC) Date: Fri, 16 Feb 2018 21:11:03 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-15206) BZip2 drops and duplicates records when input split size is small 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/HADOOP-15206?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 367883#comment-16367883 ]=20 Hudson commented on HADOOP-15206: --------------------------------- SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13673 (See [https= ://builds.apache.org/job/Hadoop-trunk-Commit/13673/]) HADOOP-15206. BZip2 drops and duplicates records when input split size (jlo= we: rev 0898ff42e9e5c53f2fce7ccdeb4e1cd7d0f123b3) * (edit) hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-= client-jobclient/src/test/java/org/apache/hadoop/mapred/TestTextInputFormat= .java * (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoo= p/io/compress/BZip2Codec.java > BZip2 drops and duplicates records when input split size is small > ----------------------------------------------------------------- > > Key: HADOOP-15206 > URL: https://issues.apache.org/jira/browse/HADOOP-15206 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 2.8.3, 3.0.0 > Reporter: Aki Tanaka > Assignee: Aki Tanaka > Priority: Major > Attachments: HADOOP-15206-test.patch, HADOOP-15206.001.patch, HAD= OOP-15206.002.patch, HADOOP-15206.003.patch, HADOOP-15206.004.patch, HADOOP= -15206.005.patch, HADOOP-15206.006.patch, HADOOP-15206.007.patch, HADOOP-15= 206.008.patch > > > BZip2 can drop and duplicate record when input split file is small. I con= firmed that this issue happens when the input split size is between 1byte a= nd 4bytes. > I am seeing the following 2 problem behaviors. > =C2=A0 > 1. Drop record: > BZip2 skips the first record in the input file when the input split size = is small > =C2=A0 > Set the split size to 3 and tested to load 100 records (0, 1, 2..99) > {code:java} > 2018-02-01 10:52:33,502 INFO=C2=A0 [Thread-17] mapred.TestTextInputFormat= (TestTextInputFormat.java:verifyPartitions(317)) - splits[1]=3Dfile:/work/= count-mismatch2/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/had= oop-mapreduce-client-jobclient/target/test-dir/TestTextInputFormat/test.bz2= :3+3 count=3D99{code} > > The input format read only 99 records but not 100 records > =C2=A0 > 2. Duplicate Record: > 2 input splits has same BZip2 records when the input split size is small > =C2=A0 > Set the split size to 1 and tested to load 100 records (0, 1, 2..99) > =C2=A0 > {code:java} > 2018-02-01 11:18:49,309 INFO [Thread-17] mapred.TestTextInputFormat (Test= TextInputFormat.java:verifyPartitions(318)) - splits[3]=3Dfile /work/count-= mismatch2/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-ma= preduce-client-jobclient/target/test-dir/TestTextInputFormat/test.bz2:3+1 c= ount=3D99 > 2018-02-01 11:18:49,310 WARN [Thread-17] mapred.TestTextInputFormat (Test= TextInputFormat.java:verifyPartitions(308)) - conflict with 1 in split 4 at= position 8 > {code} > =C2=A0 > I experienced this error when I execute Spark (SparkSQL) job under the fo= llowing conditions: > * The file size of the input files are small (around 1KB) > * Hadoop cluster has many slave=C2=A0nodes (able to launch many executor= =C2=A0tasks) > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org