Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6D1E10718 for ; Thu, 16 Jan 2014 08:53:24 +0000 (UTC) Received: (qmail 59472 invoked by uid 500); 16 Jan 2014 08:53:22 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 59424 invoked by uid 500); 16 Jan 2014 08:53:22 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 59399 invoked by uid 99); 16 Jan 2014 08:53:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 08:53:21 +0000 Date: Thu, 16 Jan 2014 08:53:21 +0000 (UTC) From: "Sandy Ryza (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-1474) Make schedulers services MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873172#comment-13873172 ] Sandy Ryza commented on YARN-1474: ---------------------------------- Overall, the approach looks good to me. A couple comments about the Fair Scheduler portions. {code} + ((FairScheduler)scheduler).serviceInitInternal(conf); {code} No need to cast here, right? Also, why not just call scheduler.init(conf)? The Fair Scheduler's serviceStop implementation should that shut down the threads it started. > Make schedulers services > ------------------------ > > Key: YARN-1474 > URL: https://issues.apache.org/jira/browse/YARN-1474 > Project: Hadoop YARN > Issue Type: Sub-task > Components: scheduler > Affects Versions: 2.4.0 > Reporter: Sandy Ryza > Assignee: Tsuyoshi OZAWA > Attachments: YARN-1474.1.patch, YARN-1474.2.patch, YARN-1474.3.patch > > > Schedulers currently have a reinitialize but no start and stop. Fitting them into the YARN service model would make things more coherent. -- This message was sent by Atlassian JIRA (v6.1.5#6160)