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 D1CB79F21 for ; Fri, 31 Aug 2012 23:00:17 +0000 (UTC) Received: (qmail 66506 invoked by uid 500); 31 Aug 2012 23:00:12 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 66428 invoked by uid 500); 31 Aug 2012 23:00:12 -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 Received: (qmail 66420 invoked by uid 99); 31 Aug 2012 23:00:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 23:00:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 23:00:04 +0000 Received: by dadz8 with SMTP id z8so2755713dad.35 for ; Fri, 31 Aug 2012 15:59:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer:x-gm-message-state; bh=Nnoir8uDj26qsx/Za1SYTVhAMrmwIdlYQ6SNLy+YSgI=; b=cv668t0hpe/pCUOw9wP+2EtORhBYOr/vhGGHucVEBZ6NIH3F1LGLzjU5KAft5SNeVY gNkWDGbYUlRzABhdZ8+Y11jRYKFKOdr9puK4AvPi+lKF3063gMRjGDs/3rVXekGKzsMp twY/31+ATPoVVcHjr7xF6vCq+U7AqPFHPgb8sEmDIDWkgGLHcan4pUTTQnn5cJRdlYWV w/5CkgacWJ3DX/AEYwaFE9hME8n3OHAsmtBaKe5oRe3otHcuenacb+Zd8w8kTP5WI7MR +0m7+pOUJAxe4SrnTWtqdEepOv7KLkeL76upLfTn+WF6VEUGHDDe9aKg1obMdLo8t4nW OyJg== Received: by 10.66.76.165 with SMTP id l5mr17781374paw.79.1346453983446; Fri, 31 Aug 2012 15:59:43 -0700 (PDT) Received: from [10.10.11.214] (host1.hortonworks.com. [70.35.59.2]) by mx.google.com with ESMTPS id ox5sm4303401pbc.75.2012.08.31.15.59.41 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 31 Aug 2012 15:59:42 -0700 (PDT) From: Vinod Kumar Vavilapalli Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/signed; boundary="Apple-Mail=_0D7DD151-E758-41A6-80AF-91DF9C181391"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Re: Questions with regard to scheduling of map and reduce tasks Date: Fri, 31 Aug 2012 15:59:39 -0700 In-Reply-To: To: user@hadoop.apache.org References: <24F38861-6C09-4EDB-82FE-F2CD2B0390C4@hortonworks.com> <93826E69-CBEE-4413-86C2-18368A3AF693@apache.org> Message-Id: X-Mailer: Apple Mail (2.1278) X-Gm-Message-State: ALoCoQnsw1ROudYV2Md+dd1wIiaAeO9mLbHMzKDT0wxfTmWC8Xwt4Q9m/vY/p0ZttjS2fMn+WZXS --Apple-Mail=_0D7DD151-E758-41A6-80AF-91DF9C181391 Content-Type: multipart/alternative; boundary="Apple-Mail=_73EDB25A-34DA-434D-AB7C-C38B44F81DAE" --Apple-Mail=_73EDB25A-34DA-434D-AB7C-C38B44F81DAE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 You don't need to touch the code related protocol-buffer records at all = as there are java-native interfaces for everything, for e.g. - = org.apache.hadoop.yarn.api.AMRMProtocol. Regarding your question - The JobClient first obtains the locations of = DFS blocks via the InputFormat.getSplits() and uploads the accumulated = information into a split file, see Job.submitInternal() -> = JobSubmitter.writeSplits() -> ... The MR AM then downloads and reads the split file and reconstructs the = splits-information and creates TaskAttempts(TAs) which then use it = request containers. See MRAppMaster code: JobImpl.InitTransition for how = TAs are created with host information. HTH, +Vinod Kumar Vavilapalli Hortonworks Inc. http://hortonworks.com/ On Aug 31, 2012, at 4:17 AM, Vasco Visser wrote: > Thanks again for the reply, it is becoming clear. >=20 > While on the subject of going over the code, do you know by any chance > where the piece of code is that creates resource requests according to > locations of HDFS blocks? I am looking for that, but the protocol > buffer stuff makes it difficult for me to understand what is going on. >=20 > regards, Vasco >=20 --Apple-Mail=_73EDB25A-34DA-434D-AB7C-C38B44F81DAE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
HTH,

+Vinod Kumar Vavilapalli
Hortonworks Inc.
http://hortonworks.com/

On Aug 31, 2012, at 4:17 AM, Vasco Visser wrote:

Thanks = again for the reply, it is becoming clear.

While on the subject = of going over the code, do you know by any chance
where the piece of = code is that creates resource requests according to
locations of HDFS = blocks? I am looking for that, but the protocol
buffer stuff makes it = difficult for me to understand what is going on.

regards, = Vasco

= --Apple-Mail=_73EDB25A-34DA-434D-AB7C-C38B44F81DAE-- --Apple-Mail=_0D7DD151-E758-41A6-80AF-91DF9C181391 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iQEcBAEBAgAGBQJQQUHcAAoJECVa31bDbF8PCEkIALkvbgDOh5xSm//ShPFdfaqt dpF9ExZqihv1J6U6ggeEOgPMkjYooRVzSnznEJSPyMGRu2oggImNaxtOiKN9d5V9 Gn5tq+3dXca4erHfUM1M1Ff+MHD3hog4SaxE13bMbWRMusx+eFMY1Xne6nJih7zE OThChy2QXyinIDeCIO/OwOiFHXydFJy59dg0ROEnL9f3K2N0Gjtxr5YMwIom96PV cW2qK94mnj98tfR+QkXT1MhONLB5RnRLdifLIF0OX25R5mT1lY3T0sWnJNMpg8q7 SFLz/KbwMBgaZL873yan/e/4KQ+DrmmAZU5Cqbz14+YbNeCiSVfIthr1xcSMzoU= =Wo9n -----END PGP SIGNATURE----- --Apple-Mail=_0D7DD151-E758-41A6-80AF-91DF9C181391--