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

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

  • 相关阅读:
    求最长不降子序列

    普通背包问题
    求最大子序列
    最大人品
    C# 显示webBrowser页面加载进度
    Provider 错误 '80004005' 未指定的错误 的最终解决方法
    C# 截取webBrowser网页存为图片
    浅谈Python小数据池
    js文件编译成动态链接库(dll)文件
  • 原文地址:https://www.cnblogs.com/weijiqian/p/14158092.html
Copyright © 2011-2022 走看看