zoukankan      html  css  js  c++  java
  • Flink问题1

    flink问题1

    报错:

    More buffers requested available than totally available

    查看源码:

    /**
    	 * This method makes sure that at least a certain number of memory segments is in the list of free segments.
    	 * Free memory can be in the list of free segments, or in the return-queue where segments used to write behind are
    	 * put. The number of segments that are in that return-queue, but are actually reclaimable is tracked. This method
    	 * makes sure at least a certain number of buffers is reclaimed.
    	 *  
    	 * @param minRequiredAvailable The minimum number of buffers that needs to be reclaimed.
    	 */
    	final void ensureNumBuffersReturned(final int minRequiredAvailable) {
    		if (minRequiredAvailable > this.availableMemory.size() + this.writeBehindBuffersAvailable) {
    			throw new IllegalArgumentException("More buffers requested available than totally available.");
    		}
    		
    		try {
    			while (this.availableMemory.size() < minRequiredAvailable) {
    				this.availableMemory.add(this.writeBehindBuffers.take());
    				this.writeBehindBuffersAvailable--;
    			}
    		}
    		catch (InterruptedException iex) {
    			throw new RuntimeException("Hash Join was interrupted.");
    		}
    	}
    
    

    原因:

    taskmanager.memory.managed.size: 512M

    这里设置的过小,恢复默认配置

  • 相关阅读:
    nth_element 使用方法
    Codeforces-1326E Bombs
    GDB下调试查看数组部分内容
    0930,主外键设置
    0928,数据库
    0924,函数返回多个值
    0921,函数 枚举
    0920,结构体
    0918,练习题
    0916,双色球练习题
  • 原文地址:https://www.cnblogs.com/weijiqian/p/14158092.html
Copyright © 2011-2022 走看看