beam-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amir bahmanyari <>
Subject Re: [FlinkRunner] Exception "Insufficient number of network buffers" thrown from time to time.
Date Wed, 06 Jul 2016 17:18:45 GMT
Hi Colleagues,I get the same time-to-time issue with Beam FlinkRunner in a Flink cluster (2
nodes).Also, 98% of the time, all happens in only one node (no LB in the cluster).FYI.ThanksAmir-

      From: Stephan Ewen <>
 Sent: Wednesday, July 6, 2016 7:22 AM
 Subject: Re: [FlinkRunner] Exception "Insufficient number of network buffers" thrown from
time to time.
The number of network buffers is a parameter one sometimes need to configure in Flink.
For Flink's own API, you can explicitly create a LocalStreamExecutionEnvironment from a configuration
and use that one for the execution.
For the FlinkRunner in Beam, it would make sense to be able to pass an ExecutionEnvironment
object to use for the program execution.Then the fix would be to create a LocalStreamExecutionEnvironment
from a config and pass that to the Flink Runner.

On Wed, Jul 6, 2016 at 3:36 PM, Aljoscha Krettek <> wrote:

Could you maybe send me a minimal version of that such that I can reproduce it?
On Wed, 6 Jul 2016 at 12:29 Pawel Szczur <> wrote:

Verified,  I've started getting it consistently this morning after few more PTransform.
2016-07-06 12:27 GMT+02:00 Aljoscha Krettek <>:

Strange, and you're saying you only sometimes get this exception? Not reproducibly?
On Wed, 6 Jul 2016 at 12:02 Pawel Szczur <> wrote:

I have 8 cores.Just IDE.
2016-07-06 12:00 GMT+02:00 Aljoscha Krettek <>:

Hi,are you running this in an IDE or on an actual cluster?
On Wed, 6 Jul 2016 at 11:57 Jean-Baptiste Onofré <> wrote:

Hi Pawel,

I'm pretty sure that our Flink experts will answer.

I'm assuming you are using a single JVM for Flink, right ?
I think it could be related to Flink StreamExecutionEnvironment and the
number of core on your machine.
More your machine has cores, more you should increase the numberOfBuffers.


On 07/06/2016 11:26 AM, Pawel Szczur wrote:
> When running my simple pipeline from time to time I'm getting below
> exception:
> Caused by: Insufficient number of network buffers:
> required 1, but only 0 available. The total number of network buffers is
> currently set to 2048. You can increase this number by setting the
> configuration key ''.
> at
> at
> at
> at
> I'm using trunk of Beam with FlinkRunner. I guess it's well known Flink
> problem? Idea how to prevent it?
> Pawel

Jean-Baptiste Onofré
Talend -

View raw message