Return-Path: X-Original-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A1E66100B4 for ; Mon, 25 Nov 2013 19:20:30 +0000 (UTC) Received: (qmail 91035 invoked by uid 500); 25 Nov 2013 19:20:30 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 90989 invoked by uid 500); 25 Nov 2013 19:20:30 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-dev@hadoop.apache.org Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 90981 invoked by uid 99); 25 Nov 2013 19:20:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 19:20:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.138.91.107] (HELO nm14-vm6.bullet.mail.ne1.yahoo.com) (98.138.91.107) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 25 Nov 2013 19:20:24 +0000 Received: from [98.138.100.115] by nm14.bullet.mail.ne1.yahoo.com with NNFMP; 25 Nov 2013 19:20:02 -0000 Received: from [98.138.89.192] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 25 Nov 2013 19:20:02 -0000 Received: from [127.0.0.1] by omp1050.mail.ne1.yahoo.com with NNFMP; 25 Nov 2013 19:20:02 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 789125.60564.bm@omp1050.mail.ne1.yahoo.com Received: (qmail 70772 invoked by uid 60001); 25 Nov 2013 19:20:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1385407201; bh=JnumeRhmrlYvu6hxSvq4l/nwRkZ/8wrAhmzpNmR50PI=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=0e1jkBQvsRXbGwhPorjUDG9xEUWp7hVwC/WbCy0d3PK6tUu1J5SUtxb/XIZswuLbOWTnDE609N4JE2gOUezNYbK1vkAkR9SYFbOXnKFg024GAf5K9TQG1Epeep1lY4FaWcRIYhlw9TZA4VZJf0YP0S92Ez5NMpc5kmlgoBokQBg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=E0j6y0eJq3L1Orbk/rRBZbAkBFl1gmZOayRSBmR8yeMEqSyQuNuYPKvByXitUSZ14vFCSsTmdsKNHXhY1qfCmce9ZEV/9bZyrRYX2lJYYUx0UHpu0/0nYsMT7BW2vljSnMFzYUNy6S++3zbbjQrYUxXPlscuenoE75oP7c3HKRo=; X-YMail-OSG: O9.Xj3QVM1lt3JHTUwNzWCk.4taFsZnLH1A5.FyjxXkfFeo B0KH_qMhxTKfORAvlmb29E7KRtaiiJdE5POEqDDFIMt1pBae5bPPOoXedyME Zkb.xXcQ6f1DIsPpsSx5TaFaU9yd.tw7ggi7VIdxu5_PrLXiBs_sQwbMBNeK HRM5BcCaIsj0ax9jAcHoTrrSLNP3OBUoSYni.6ne4AQVbpnml_bbCd6vLFc7 QIh9jmwwqb62pBbxOuzt_UUGvPcpa2CAuEcytdoCWSuvhtuQprVlBAVlQnxW q8VSCsgy9w_CCyZgVq1p6MPqA91Aorh1Y5yBy1t4K4q.EpMdEE2vFV9fZnag kfHHH9sWehWkocCnjYjjobYoSl5KgxaDlcHUEiOwWTQcsUnPUQt67HZD5r9b vGsqGofK_LA8n_xd.rTyEFrcj.kpg_GWjAqVYPK7FItANfGIvdUtgEXLyyTG isOI_y8uxV0TRC3xPqw5.pmw.S4KMpLsK0.AnH4H_hoCl4hWaEpURReMJtYY EFCi6RIOJVoOkN.3y0vHGUhvcN3C_9VWLPMlAKjdtu6_0qq7oXKu.acsv6bm iocgDJYlmGz51jhwMBkJlvtRyXus5ZLVCUIdxR.tmK6Axh_JDMXhLkcY8sIR Y3_yJ3QKP3LYHUMwbSFkdmmDEIG9rK7zY235sF1vgmwzAnrqoU4k0N6U_Di3 wAZ8gXOWLiYxtcf4kdYid Received: from [131.107.159.221] by web122404.mail.ne1.yahoo.com via HTTP; Mon, 25 Nov 2013 11:20:01 PST X-Rocket-MIMEInfo: 002.001,SSBjaGVja2VkIHRob3NlIHBsYWNlcyBaaGlqaWUuIEFzIEkgbWVudGlvbmVkIGJlZm9yZSBpbiBBcHBsaWNhdGlvbk1hc3RlclByb3RvY29sUEJDbGllbnRJbXBsI2FsbG9jYXRlLCB3aGljaCBpcyBmdXJ0aGVyIGRvd24gaW4gWWFyblNjaGVkdWxlciNhbGxvY2F0ZSwgaWYgSSBwcmludCB0aGUgYmxhY2tsaXN0IGF0IHRoZSBiZWdpbm5pbmcgb2YgdGhlIGZ1bmN0aW9uOgpMT0cuaW5mbygiUk0gLS0.IGFsbG9jYXRlIHJlcXVlc3QgZnJvbSBBTTsgYmxhY2tsaXN0X2E9IityZXF1ZXN0LmdldFJlc291cmNlQmwBMAEBAQE- X-Mailer: YahooMailWebService/0.8.167.602 References: <1385245850.27673.YahooMailNeo@web122406.mail.ne1.yahoo.com> <1385404698.80803.YahooMailNeo@web122406.mail.ne1.yahoo.com> Message-ID: <1385407201.19282.YahooMailNeo@web122404.mail.ne1.yahoo.com> Date: Mon, 25 Nov 2013 11:20:01 -0800 (PST) From: Grandl Robert Reply-To: Grandl Robert Subject: Re: Fw: blacklist additions/removals not propagated to RM To: "yarn-dev@hadoop.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1869880960-1753477228-1385407201=:19282" X-Virus-Checked: Checked by ClamAV on apache.org --1869880960-1753477228-1385407201=:19282 Content-Type: text/plain; charset=us-ascii I checked those places Zhijie. As I mentioned before in ApplicationMasterProtocolPBClientImpl#allocate, which is further down in YarnScheduler#allocate, if I print the blacklist at the beginning of the function: LOG.info("RM --> allocate request from AM; blacklist_a="+request.getResourceBlacklistRequest().getBlacklistAdditions().toString()); it shows me the right list, but if I print after requestProto: LOG.info("RM --> allocate request from AM; blacklist_a="+requestProto.getBlacklistRequest().getBlacklistAdditionsList().toString()); it is empty. It seems things are screwed up somewhere in yarn-api. I will open a jira and maybe you can take a look please. Thanks, robert On Monday, November 25, 2013 11:09 AM, Zhijie Shen wrote: Hi Grandl, Have you checked the following log message "Update the blacklist for ..."? What did it tell? BTW, YarnScheduler#allocate takes the blacklist additions/removes. You may also want to verify YarnScheduler#allocate gets the empty list or not. Thanks, Zhijie On Mon, Nov 25, 2013 at 10:38 AM, Grandl Robert wrote: > I am not sure I posted this question in the right thread. > > > Do you have some thoughts with the below mail ? Is there any configuration > parameter for RM to enable blacklisting ? Anyway, it seems my blacklist is > sent empty to RM, so I think is an AM problem though. > > > Please let me know about your thoughts, > > robert > > > > > On Saturday, November 23, 2013 2:31 PM, Grandl Robert > wrote: > > Hi, > > I am not 100% sure it's a bug in AM, but it seems so. I am blacklisting > some hosts, which are send through an AllocateRequest in makeRemoteRequest > method in RMContainerRequest.java. > > However, the blacklist is empty at RM. I traced all over the places where > this is lost, and I found that in > ApplicationMasterProtocolPBClientImpl.java, in allocate(AllocateRequest > request) method, if I print the > request.getResourceBlacklistRequest().getBlacklistAdditiions() I see the > list, but after it does AllocateRequestProto requestProto = (..).getProto(), > and I print the requestProto.getBlacklistRequest().getBlacklistAdditions() > now is EMPTY. > > So basically, AM send an empty black list to RM. I went even further down > and traced till YarnServiceProtos.java(in hadoop-yarn-api), but at this > point all the logs I have, are removed. it seems this code is regenerated > every time I am compiling yarn-api .... > > Is there something I am missing guys, or is a bug ? Interesting is that > release containers list is propagated correctly but I think it comes on > other path. I am running hadoop-yarn 2.3. > > Thanks, > robert > -- Zhijie Shen Hortonworks Inc. http://hortonworks.com/ -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You. --1869880960-1753477228-1385407201=:19282--