Comments (2)
目前用下面的这种方式可以解决,不知道有没有更好的方式
在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.
local模式主要是在本地debug用的,所以当时设计是没有考虑到会在local模式下提交多个任务的情况
from chunjun.
Related Issues (20)
- [Bug] [connector-oracle] oracle sync同步,字段类型为blob,当字段值为 null 时同步报 NullPointerException
- Job failed during initialization of JobManage HOT 2
- [ChunJun连接器][Mysql Source] connection jdbcUrl的样例和文字描述不符
- [Bug] [hdfs] orc file size calculation method is wrong
- [Bug] [connector-oracle] oracle消费date数据类型出现时间错乱的情况 HOT 1
- [Bug] [hdfs] Synchronizing text and parquet table data, the speed is too slow when the table field contains date type
- [Bug] [kudu] kudu write mode parameters do not take effect
- [Bug] [chunjun] flink web ui 查看 checkpoints 报错
- [Bug] [sqlservercdc-x] sql脚本配置的lsn无法生效
- [Bug] [dirty] 配置了脏数据处理,Prometheus nErrors指标不能同步最后一次失败的次数
- [Bug] [connector][kafka] 缺少依赖包 HOT 1
- [Bug] [connector]][rocketmq] rocketmq如果offset模式中,offset传入-1报错 HOT 1
- [Bug] [doris-x] sink-遇到源端update时,会出现重复统计 HOT 7
- [Bug] [clickhouse-x] sink-启动报错,无法正常工作:No value present
- [Question][Launcher]Yarn Session模式提交任务之后无响应
- [Feature] [ftp] 写入时增加支持压缩、写入模式以及修复获取sftp config bug
- 使用yarn-session模式运行官方实例stream.json的时候prometheus出现问题
- 纯钧执行任务时,校验数据表时使用大小写敏感的SQL语句问题
- [Question][KafkaSource] kafkasource sync模式编码解码器有没有计划支持canal-json
- [Bug] [chunjun-connector-kafka] DynamicKafkaSerializationSchema durationCounter have two different type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chunjun.