Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 603E110914 for ; Thu, 8 Aug 2013 08:00:02 +0000 (UTC) Received: (qmail 90873 invoked by uid 500); 8 Aug 2013 07:59:55 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 90734 invoked by uid 500); 8 Aug 2013 07:59:55 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Delivered-To: moderator for user@hadoop.apache.org Received: (qmail 77955 invoked by uid 99); 8 Aug 2013 07:46:14 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sathwik.bp@gmail.com designates 209.85.216.46 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rE+AOKne5sfR4WHrD6CmQ7QN49ES35fGCDnDCztNZUI=; b=zlCXDaTQHZo5iZ0assnMLNFaeqpj1VmVrrnhDpKFQL+9OC7ciqJzLNwzHZNhqfQcji xoIX+JPYlaFqQm5btBxF3tSpMyv7A8rTQS4NxtATt20KteLR6+QVcMnHhAOmt/10U8jY 9ZUkQ7lrGPL0FGuJfBGI2uDrAODGedBVzst84pgtTOPZ0yfvLqpKOtKrSP/7ZOPKkxfL IVPvbbBILsYiCD208z9UXxOIDbTBOC0pDpeNkXnf7y4j/aId3q73Pmt+u5FjCropfC36 Mwm2V9Qzx2EkFKdaRW5/FQM1JMqo1XAdl7otPHje68xbV/i1nERwNqS+zUPvfrdYYdTV b6sg== MIME-Version: 1.0 X-Received: by 10.49.28.9 with SMTP id x9mr4749110qeg.8.1375947948781; Thu, 08 Aug 2013 00:45:48 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Aug 2013 07:45:48 +0000 Message-ID: Subject: Re: Why LineRecordWriter.write(..) is synchronized From: Sathwik B P To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7bdc0774b7a94204e36ad8a6 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc0774b7a94204e36ad8a6 Content-Type: text/plain; charset=ISO-8859-1 Hi, Thanks for your reply. May I know where does hadoop fork multiple threads to use a single RecordWriter. regards, sathwik On Thu, Aug 8, 2013 at 7:06 AM, Azuryy Yu wrote: > because we may use multi-threads to write a single file. > On Aug 8, 2013 2:54 PM, "Sathwik B P" wrote: > >> Hi, >> >> LineRecordWriter.write(..) is synchronized. I did not find any other >> RecordWriter implementations define the write as synchronized. >> Any specific reason for this. >> >> regards, >> sathwik >> > --047d7bdc0774b7a94204e36ad8a6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
Thanks for your reply.
May I know where does hadoop fork multiple= threads to use a single RecordWriter.

regards,
sathwik

On Thu, Aug 8, 2013 at 7:06 AM, Azuryy Yu <azury= yyu@gmail.com> wrote:

because we may use multi-thre= ads to write a single file.

On Aug 8, 2013 2:54 PM, "Sathwik B P" = <sathwik@apache.= org> wrote:
Hi,

LineRecordWriter.write(..) is synchronized. I did not find any o= ther RecordWriter implementations define the write as synchronized.
Any = specific reason for this.

regards,
sathwik

--047d7bdc0774b7a94204e36ad8a6--