From issues-return-175866-archive-asf-public=cust-asf.ponee.io@flink.apache.org Sun Jul 8 17:48:05 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 0459F180630 for ; Sun, 8 Jul 2018 17:48:04 +0200 (CEST) Received: (qmail 45045 invoked by uid 500); 8 Jul 2018 15:48:04 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 45036 invoked by uid 99); 8 Jul 2018 15:48:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jul 2018 15:48:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A36291A6FB4 for ; Sun, 8 Jul 2018 15:48:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.051 X-Spam-Level: X-Spam-Status: No, score=-110.051 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_LOTSOFHASH=0.25, 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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id zUxpB_TVm1Q6 for ; Sun, 8 Jul 2018 15:48:02 +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 3DFEE5F57E for ; Sun, 8 Jul 2018 15:48: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 6C097E0056 for ; Sun, 8 Jul 2018 15:48: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 212CB27508 for ; Sun, 8 Jul 2018 15:48:00 +0000 (UTC) Date: Sun, 8 Jul 2018 15:48:00 +0000 (UTC) From: "Gary Yao (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLINK-9777) YARN: JM and TM Memory must be specified with Units MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-9777?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Yao updated FLINK-9777: ---------------------------- Description:=20 FLINK-6469 breaks backwards compatibility because the JobManager and TaskMa= nager memory must be specified with units (otherwise bytes are assumed). Th= e command to start a YARN session as documented ([https://github.com/apache= /flink/blob/9f736d1927c62d220a82931c4f5ffa4955910f27/docs/ops/deployment/ya= rn_setup.md) |https://github.com/apache/flink/blob/9f736d1927c62d220a82931c= 4f5ffa4955910f27/docs/ops/deployment/yarn_setup.md] would not work because = 1024 bytes and 4096 bytes are not enough for the heap size. The command fin= ishes with the following exception: {noformat} java.lang.reflect.UndeclaredThrowableException =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInforma= tion.java:1854) =09at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(Ha= doopSecurityContext.java:41) =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.main(FlinkYarnSessionCl= i.java:802) Caused by: org.apache.flink.client.deployment.ClusterDeploymentException: C= ouldn't deploy Yarn session cluster =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deploySessionClus= ter(AbstractYarnClusterDescriptor.java:420) =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.run(FlinkYarnSessionCli= .java:599) =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.lambda$main$2(FlinkYarn= SessionCli.java:802) =09at java.security.AccessController.doPrivileged(Native Method) =09at javax.security.auth.Subject.doAs(Subject.java:422) =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInforma= tion.java:1836) =09... 2 more Caused by: org.apache.flink.util.FlinkException: Cannot fulfill the minimum= memory requirements with the provided cluster specification. Please increa= se the memory of the cluster. =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.validateClusterSp= ecification(AbstractYarnClusterDescriptor.java:453) =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deployInternal(Ab= stractYarnClusterDescriptor.java:475) =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deploySessionClus= ter(AbstractYarnClusterDescriptor.java:413) =09... 7 more Caused by: java.lang.IllegalArgumentException =09at org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:= 123) =09at org.apache.flink.runtime.clusterframework.ContaineredTaskManagerParam= eters.calculateCutoffMB(ContaineredTaskManagerParameters.java:115) =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.validateClusterSp= ecification(AbstractYarnClusterDescriptor.java:450) =09... 9 more {noformat} =C2=A0 was: FLINK-6469 breaks backwards compatibility because the JobManager and TaskMa= nager memory should be specified with units (otherwise bytes are assumed). = The command to start a YARN session as documented ([https://github.com/apac= he/flink/blob/9f736d1927c62d220a82931c4f5ffa4955910f27/docs/ops/deployment/= yarn_setup.md) |https://github.com/apache/flink/blob/9f736d1927c62d220a8293= 1c4f5ffa4955910f27/docs/ops/deployment/yarn_setup.md] would not work becaus= e 1024 bytes and 4096 bytes are not enough for the heap size. The command f= inishes with the following exception: {noformat} java.lang.reflect.UndeclaredThrowableException =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInforma= tion.java:1854) =09at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(Ha= doopSecurityContext.java:41) =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.main(FlinkYarnSessionCl= i.java:802) Caused by: org.apache.flink.client.deployment.ClusterDeploymentException: C= ouldn't deploy Yarn session cluster =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deploySessionClus= ter(AbstractYarnClusterDescriptor.java:420) =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.run(FlinkYarnSessionCli= .java:599) =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.lambda$main$2(FlinkYarn= SessionCli.java:802) =09at java.security.AccessController.doPrivileged(Native Method) =09at javax.security.auth.Subject.doAs(Subject.java:422) =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInforma= tion.java:1836) =09... 2 more Caused by: org.apache.flink.util.FlinkException: Cannot fulfill the minimum= memory requirements with the provided cluster specification. Please increa= se the memory of the cluster. =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.validateClusterSp= ecification(AbstractYarnClusterDescriptor.java:453) =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deployInternal(Ab= stractYarnClusterDescriptor.java:475) =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deploySessionClus= ter(AbstractYarnClusterDescriptor.java:413) =09... 7 more Caused by: java.lang.IllegalArgumentException =09at org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:= 123) =09at org.apache.flink.runtime.clusterframework.ContaineredTaskManagerParam= eters.calculateCutoffMB(ContaineredTaskManagerParameters.java:115) =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.validateClusterSp= ecification(AbstractYarnClusterDescriptor.java:450) =09... 9 more {noformat} =C2=A0 > YARN: JM and TM Memory must be specified with Units=20 > ---------------------------------------------------- > > Key: FLINK-9777 > URL: https://issues.apache.org/jira/browse/FLINK-9777 > Project: Flink > Issue Type: Bug > Components: Documentation, YARN > Affects Versions: 1.6.0 > Environment: commit 9f736d1927c62d220a82931c4f5ffa4955910f27 > Reporter: Gary Yao > Priority: Blocker > Fix For: 1.6.0 > > > FLINK-6469 breaks backwards compatibility because the JobManager and Task= Manager memory must be specified with units (otherwise bytes are assumed). = The command to start a YARN session as documented ([https://github.com/apac= he/flink/blob/9f736d1927c62d220a82931c4f5ffa4955910f27/docs/ops/deployment/= yarn_setup.md) |https://github.com/apache/flink/blob/9f736d1927c62d220a8293= 1c4f5ffa4955910f27/docs/ops/deployment/yarn_setup.md] would not work becaus= e 1024 bytes and 4096 bytes are not enough for the heap size. The command f= inishes with the following exception: > {noformat} > java.lang.reflect.UndeclaredThrowableException > =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInfor= mation.java:1854) > =09at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(= HadoopSecurityContext.java:41) > =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.main(FlinkYarnSession= Cli.java:802) > Caused by: org.apache.flink.client.deployment.ClusterDeploymentException:= Couldn't deploy Yarn session cluster > =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deploySessionCl= uster(AbstractYarnClusterDescriptor.java:420) > =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.run(FlinkYarnSessionC= li.java:599) > =09at org.apache.flink.yarn.cli.FlinkYarnSessionCli.lambda$main$2(FlinkYa= rnSessionCli.java:802) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at javax.security.auth.Subject.doAs(Subject.java:422) > =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInfor= mation.java:1836) > =09... 2 more > Caused by: org.apache.flink.util.FlinkException: Cannot fulfill the minim= um memory requirements with the provided cluster specification. Please incr= ease the memory of the cluster. > =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.validateCluster= Specification(AbstractYarnClusterDescriptor.java:453) > =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deployInternal(= AbstractYarnClusterDescriptor.java:475) > =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deploySessionCl= uster(AbstractYarnClusterDescriptor.java:413) > =09... 7 more > Caused by: java.lang.IllegalArgumentException > =09at org.apache.flink.util.Preconditions.checkArgument(Preconditions.jav= a:123) > =09at org.apache.flink.runtime.clusterframework.ContaineredTaskManagerPar= ameters.calculateCutoffMB(ContaineredTaskManagerParameters.java:115) > =09at org.apache.flink.yarn.AbstractYarnClusterDescriptor.validateCluster= Specification(AbstractYarnClusterDescriptor.java:450) > =09... 9 more > {noformat} > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)