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 96DFD10E18 for ; Tue, 25 Feb 2014 00:26:26 +0000 (UTC) Received: (qmail 15292 invoked by uid 500); 25 Feb 2014 00:26:24 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 15232 invoked by uid 500); 25 Feb 2014 00:26: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 15074 invoked by uid 99); 25 Feb 2014 00:26:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 00:26:20 +0000 Date: Tue, 25 Feb 2014 00:26:20 +0000 (UTC) From: "Sandy Ryza (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-1760) TestRMAdminService assumes the use of CapacityScheduler 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-1760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13911038#comment-13911038 ] Sandy Ryza commented on YARN-1760: ---------------------------------- Thanks. One more thing: Configuration.addDefaultResource is a static method that applies to all configurations. So it should either go in setup or the non-static configuration.addResource should be used. > TestRMAdminService assumes the use of CapacityScheduler > ------------------------------------------------------- > > Key: YARN-1760 > URL: https://issues.apache.org/jira/browse/YARN-1760 > Project: Hadoop YARN > Issue Type: Bug > Affects Versions: 2.4.0 > Reporter: Karthik Kambatla > Assignee: Karthik Kambatla > Priority: Trivial > Labels: test > Attachments: yarn-1760-1.patch, yarn-1760-2.patch > > > YARN-1611 adds TestRMAdminService which assumes the use of CapacityScheduler. > {noformat} > java.lang.ClassCastException: org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler cannot be cast to org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler > at org.apache.hadoop.yarn.server.resourcemanager.TestRMAdminService.testAdminRefreshQueuesWithFileSystemBasedConfigurationProvider(TestRMAdminService.java:115) > {noformat} -- This message was sent by Atlassian JIRA (v6.1.5#6160)