From issues-return-176903-apmail-flink-issues-archive=flink.apache.org@flink.apache.org Thu Jul 12 08:48:03 2018 Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-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 E990318FC6 for ; Thu, 12 Jul 2018 08:48:03 +0000 (UTC) Received: (qmail 59424 invoked by uid 500); 12 Jul 2018 08:48:03 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 59386 invoked by uid 500); 12 Jul 2018 08:48: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 59376 invoked by uid 99); 12 Jul 2018 08:48:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2018 08:48:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 62234C032B for ; Thu, 12 Jul 2018 08:48:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id If1ab962qyma for ; Thu, 12 Jul 2018 08: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 7EA515F48E for ; Thu, 12 Jul 2018 08: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 A94BBE0D09 for ; Thu, 12 Jul 2018 08: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 61C2523F9A for ; Thu, 12 Jul 2018 08:48:00 +0000 (UTC) Date: Thu, 12 Jul 2018 08:48: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= 1341#comment-16541341 ]=20 ASF GitHub Bot commented on FLINK-9777: --------------------------------------- Github user GJL commented on the issue: https://github.com/apache/flink/pull/6297 =20 I will take a look later. > 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)