Coder Social home page Coder Social logo

Comments (2)

zhihui-ge avatar zhihui-ge commented on August 20, 2024

目前用下面的这种方式可以解决,不知道有没有更好的方式
在com.dtstack.flinkx.Main增加下面代码,创建MyLocalStreamEnvironment的时候指定参数

   //TODO 本地模式同时启动多个任务出现端口占用的情况
    Configuration conf = new Configuration();
    conf.setString("query.proxy.ports", "50100-50200,50300-50400,51234");
    conf.setString("query.server.ports", "50100-50200,50300-50400,51234");
    //构造并执行flink任务
    StreamExecutionEnvironment env = (StringUtils.isNotBlank(monitor)) ?
            StreamExecutionEnvironment.getExecutionEnvironment() :
            new MyLocalStreamEnvironment(conf);

from chunjun.

yangsishu avatar yangsishu commented on August 20, 2024

local模式主要是在本地debug用的,所以当时设计是没有考虑到会在local模式下提交多个任务的情况

from chunjun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.