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 75F2819D17 for ; Wed, 20 Apr 2016 20:31:26 +0000 (UTC) Received: (qmail 75654 invoked by uid 500); 20 Apr 2016 20:31:25 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 75497 invoked by uid 500); 20 Apr 2016 20:31:25 -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 75465 invoked by uid 99); 20 Apr 2016 20:31:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 20:31:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 83C482C1F5A for ; Wed, 20 Apr 2016 20:31:25 +0000 (UTC) Date: Wed, 20 Apr 2016 20:31:25 +0000 (UTC) From: "Ashwin Shankar (JIRA)" To: yarn-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-4975) Fair Scheduler: exception thrown when a parent queue marked 'parent' has configured child queues MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ashwin Shankar created YARN-4975: ------------------------------------ Summary: Fair Scheduler: exception thrown when a parent queue marked 'parent' has configured child queues Key: YARN-4975 URL: https://issues.apache.org/jira/browse/YARN-4975 Project: Hadoop YARN Issue Type: Bug Components: fairscheduler Affects Versions: 2.7.2 Reporter: Ashwin Shankar We upgraded our clusters to 2.7.2 from 2.4.1 and saw the following exception in RM logs : {code} Caused by: org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.AllocationConfigurationException: Both and type="parent" found for queue root.adhoc which is unsupported at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.AllocationFileLoaderService.loadQueue(AllocationFileLoaderService.java:519) at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.AllocationFileLoaderService.reloadAllocations(AllocationFileLoaderService.java:352) at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.initScheduler(FairScheduler.java:1440) {code} >From the exception, it looks like we've configured 'reservation', but we've not. The issue is that AllocationFileLoaderService#loadQueue assumes that a parent queue cannot be marked as 'type=parent' if it has configured child queues. That can be a problem in cases where we mark a queue as 'parent' which has no configured child queues to start with, but we can add child queues later on. Also the exception is kind of misleading since we haven't configured 'reservation'. How to reproduce: Run fair scheduler with following queue config: {code} 10 300 3 {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)