From issues-return-177007-archive-asf-public=cust-asf.ponee.io@flink.apache.org Thu Jul 12 14:38: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 18D46180676 for ; Thu, 12 Jul 2018 14:38:03 +0200 (CEST) Received: (qmail 74663 invoked by uid 500); 12 Jul 2018 12:38:03 -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 74654 invoked by uid 99); 12 Jul 2018 12:38:03 -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; Thu, 12 Jul 2018 12:38:03 +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 BB3311A0894 for ; Thu, 12 Jul 2018 12:38:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Xe38wJ_Y0Xbq for ; Thu, 12 Jul 2018 12:38:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 928FA5F438 for ; Thu, 12 Jul 2018 12:38: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 CDF40E1309 for ; Thu, 12 Jul 2018 12:38: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 3563A23F9C for ; Thu, 12 Jul 2018 12:38:00 +0000 (UTC) Date: Thu, 12 Jul 2018 12:38:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1654= 1563#comment-16541563 ]=20 ASF GitHub Bot commented on FLINK-9777: --------------------------------------- Github user GJL commented on a diff in the pull request: https://github.com/apache/flink/pull/6297#discussion_r202017985 =20 --- Diff: flink-yarn/src/main/java/org/apache/flink/yarn/cli/FlinkYarnS= essionCli.java --- @@ -386,10 +386,10 @@ private ClusterSpecification createClusterSpecifi= cation(Configuration configurat =09=09} =20 =09=09// JobManager Memory -=09=09final int jobManagerMemoryMB =3D MemorySize.parse(configuration.= getString(JobManagerOptions.JOB_MANAGER_HEAP_MEMORY)).getMebiBytes(); +=09=09final int jobManagerMemoryMB =3D MemorySize.parse(configuration.= getString(JobManagerOptions.JOB_MANAGER_HEAP_MEMORY), MemorySize.MemoryUnit= .MEGA_BYTES).getMebiBytes(); --- End diff -- =20 Would it hurt to add `.withDeprecatedKeys("jobmanager.heap.mb")`? In ca= se someone does not use the scripts to start the cluster. > 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 > Assignee: vinoyang > Priority: Blocker > Labels: pull-request-available > 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)