From issues-return-200566-archive-asf-public=cust-asf.ponee.io@flink.apache.org Thu Nov 8 22:21:06 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 70E2A18067E for ; Thu, 8 Nov 2018 22:21:05 +0100 (CET) Received: (qmail 42330 invoked by uid 500); 8 Nov 2018 21:21:01 -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 42305 invoked by uid 99); 8 Nov 2018 21:21:01 -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, 08 Nov 2018 21:21:01 +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 2D03BC2346 for ; Thu, 8 Nov 2018 21:21:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, 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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id AT-y_DPp6CP5 for ; Thu, 8 Nov 2018 21:20:58 +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 9CD3E69A41 for ; Thu, 8 Nov 2018 09:35: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 2AD9EE13DA for ; Thu, 8 Nov 2018 09:35:01 +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 2E703266AF for ; Thu, 8 Nov 2018 09:35:00 +0000 (UTC) Date: Thu, 8 Nov 2018 09:35:00 +0000 (UTC) From: "Till Rohrmann (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-10818) RestartStrategies.fixedDelayRestart Occur NoResourceAvailableException: Not enough free slots available to run the job. 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-10818?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166= 79502#comment-16679502 ]=20 Till Rohrmann commented on FLINK-10818: --------------------------------------- Could you check whether your Yarn cluster had actually the required resourc= es? If you have other jobs running in your cluster, then it could happen th= at they take the required resources. Moreover, you could check whether the = problem also occurs with Flink {{1.6.2}} and the new mode (not legacy). > RestartStrategies.fixedDelayRestart Occur NoResourceAvailableException: = Not enough free slots available to run the job. > -------------------------------------------------------------------------= ----------------------------------------------- > > Key: FLINK-10818 > URL: https://issues.apache.org/jira/browse/FLINK-10818 > Project: Flink > Issue Type: Bug > Components: Core > Affects Versions: 1.6.2 > Environment: JDK 1.8 > Flink 1.6.0=C2=A0 > Hadoop 2.7.3 > Reporter: ambition > Priority: Major > > =C2=A0Our Online Flink on Yarn environment operation=C2=A0 job=EF=BC=8Cco= de set restart=C2=A0tactic like=C2=A0 > {code:java} > exeEnv.setRestartStrategy(RestartStrategies.fixedDelayRestart(5,1000l)); > {code} > But job running some days, Occur Exception is : > {code:java} > org.apache.flink.runtime.jobmanager.scheduler.NoResourceAvailableExceptio= n: Not enough free slots available to run the job. You can decrease the ope= rator parallelism or increase the number of slots per TaskManager in the co= nfiguration. Task to schedule: < Attempt #5 (Source: KafkaJsonTableSource -= > Map -> where: (AND(OR(=3D(app_key, _UTF-16LE'C4FAF9CE1569F541'), =3D(app_= key, _UTF-16LE'F5C7F68C7117630B'), =3D(app_key, _UTF-16LE'57C6FF4B5A064D29'= )), OR(=3D(LOWER(TRIM(FLAG(BOTH), _UTF-16LE' ', os_type)), _UTF-16LE'ios'),= =3D(LOWER(TRIM(FLAG(BOTH), _UTF-16LE' ', os_type)), _UTF-16LE'android')), = IS NOT NULL(server_id))), select: (MT_Date_Format_Mode(receive_time, _UTF-1= 6LE'yyyyMMddHHmm', 10) AS date_p, LOWER(TRIM(FLAG(BOTH), _UTF-16LE' ', os_t= ype)) AS os_type, MT_Date_Format_Mode(receive_time, _UTF-16LE'HHmm', 10) AS= date_mm, server_id) (1/6)) @ (unassigned) - [SCHEDULED] > with groupID < c= bc357ccb763df2852fee8c4fc7d55f2 > in sharing group < 690dbad267a8ff37c8cb5e= 9dbedd0a6d >. Resources available to scheduler: Number of instances=3D6, to= tal number of slots=3D6, available slots=3D0 > at org.apache.flink.runtime.jobmanager.scheduler.Scheduler.scheduleTas= k(Scheduler.java:281) > at org.apache.flink.runtime.jobmanager.scheduler.Scheduler.allocateSlo= t(Scheduler.java:155) > at org.apache.flink.runtime.executiongraph.Execution.lambda$allocateAn= dAssignSlotForExecution$2(Execution.java:491) > at org.apache.flink.runtime.executiongraph.Execution$$Lambda$44/166417= 8385.apply(Unknown Source) > at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableF= uture.java:981) > at java.util.concurrent.CompletableFuture.thenCompose(CompletableFutur= e.java:2116) > at org.apache.flink.runtime.executiongraph.Execution.allocateAndAssign= SlotForExecution(Execution.java:489) > at org.apache.flink.runtime.executiongraph.ExecutionJobVertex.allocate= ResourcesForAll(ExecutionJobVertex.java:521) > at org.apache.flink.runtime.executiongraph.ExecutionGraph.scheduleEage= r(ExecutionGraph.java:945) > at org.apache.flink.runtime.executiongraph.ExecutionGraph.scheduleForE= xecution(ExecutionGraph.java:875) > at org.apache.flink.runtime.executiongraph.ExecutionGraph.restart(Exec= utionGraph.java:1262) > at org.apache.flink.runtime.executiongraph.restart.ExecutionGraphResta= rtCallback.triggerFullRecovery(ExecutionGraphRestartCallback.java:59) > at org.apache.flink.runtime.executiongraph.restart.FixedDelayRestartSt= rategy$1.run(FixedDelayRestartStrategy.java:68) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:= 511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTas= k.access$201(ScheduledThreadPoolExecutor.java:180) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTas= k.run(ScheduledThreadPoolExecutor.java:293) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:617) > at java.lang.Thread.run(Thread.java:745) > {code} > =C2=A0 > this Exception happened when the job started. issue links to=C2=A0 > https://issues.apache.org/jira/browse/FLINK-4486 > =C2=A0 > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)