From yarn-issues-return-156248-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed Oct 24 14:29:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 096E0180675 for ; Wed, 24 Oct 2018 14:29:03 +0200 (CEST) Received: (qmail 68155 invoked by uid 500); 24 Oct 2018 12:29:03 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 68000 invoked by uid 99); 24 Oct 2018 12:29:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2018 12:29:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 99E1EC2C05 for ; Wed, 24 Oct 2018 12:29:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id wyc2ZFydLlX7 for ; Wed, 24 Oct 2018 12:29:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4685F5F3AD for ; Wed, 24 Oct 2018 12:29:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5D28AE13DA for ; Wed, 24 Oct 2018 12:29:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1DEFE26691 for ; Wed, 24 Oct 2018 12:29:00 +0000 (UTC) Date: Wed, 24 Oct 2018 12:29:00 +0000 (UTC) From: "Akshay Agarwal (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-8942) PriorityBasedRouterPolicy throws exception if all sub-cluster weights have negative value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Akshay Agarwal created YARN-8942: ------------------------------------ Summary: PriorityBasedRouterPolicy throws exception if all sub= -cluster weights have negative value Key: YARN-8942 URL: https://issues.apache.org/jira/browse/YARN-8942 Project: Hadoop YARN Issue Type: Bug Reporter: Akshay Agarwal In PriorityBasedRouterPolicy if all sub-cluster weights are set to negative= values it is throwing exception while running a job. Ideally it should handle the negative priority as well according to the hom= e sub cluster selection process of the policy. =C2=A0Exception Details: {code:java} java.io.IOException: org.apache.hadoop.yarn.exceptions.YarnException: Unabl= e to insert the ApplicationId application_1540356760422_0015 into the Feder= ationStateStore at org.apache.hadoop.yarn.server.router.RouterServerUtil.logAndThro= wException(RouterServerUtil.java:56) at org.apache.hadoop.yarn.server.router.clientrm.FederationClientIn= terceptor.submitApplication(FederationClientInterceptor.java:418) at org.apache.hadoop.yarn.server.router.clientrm.RouterClientRMServ= ice.submitApplication(RouterClientRMService.java:218) at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProt= ocolPBServiceImpl.submitApplication(ApplicationClientProtocolPBServiceImpl.= java:282) at org.apache.hadoop.yarn.proto.ApplicationClientProtocol$Applicati= onClientProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java= :579) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoke= r.call(ProtobufRpcEngine.java:523) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:991) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:872) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:818) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupIn= formation.java:1729) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2678) Caused by: org.apache.hadoop.yarn.server.federation.store.exception.Federat= ionStateStoreInvalidInputException: Missing SubCluster Id information. Plea= se try again by specifying Subcluster Id information. at org.apache.hadoop.yarn.server.federation.store.utils.FederationM= embershipStateStoreInputValidator.checkSubClusterId(FederationMembershipSta= teStoreInputValidator.java:247) at org.apache.hadoop.yarn.server.federation.store.utils.FederationA= pplicationHomeSubClusterStoreInputValidator.checkApplicationHomeSubCluster(= FederationApplicationHomeSubClusterStoreInputValidator.java:160) at org.apache.hadoop.yarn.server.federation.store.utils.FederationA= pplicationHomeSubClusterStoreInputValidator.validate(FederationApplicationH= omeSubClusterStoreInputValidator.java:65) at org.apache.hadoop.yarn.server.federation.store.impl.ZookeeperFed= erationStateStore.addApplicationHomeSubCluster(ZookeeperFederationStateStor= e.java:159) at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(R= etryInvocationHandler.java:422) at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMet= hod(RetryInvocationHandler.java:165) at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(Re= tryInvocationHandler.java:157) at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnc= e(RetryInvocationHandler.java:95) at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryIn= vocationHandler.java:359) at com.sun.proxy.$Proxy84.addApplicationHomeSubCluster(Unknown Sour= ce) at org.apache.hadoop.yarn.server.federation.utils.FederationStateSt= oreFacade.addApplicationHomeSubCluster(FederationStateStoreFacade.java:402) at org.apache.hadoop.yarn.server.router.clientrm.FederationClientIn= terceptor.submitApplication(FederationClientInterceptor.java:413) ... 11 more {code} =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org