当前位置: 首页 > news >正文

iis默认网站删除西安专业房产网站建设

iis默认网站删除,西安专业房产网站建设,微信小程序开发一般多少钱,网站建设方法:背景 在使用flink进行集成测试时#xff0c;我们会使用MiniClusterWithClientResource类#xff0c;但是当我们断点导致在某个方法执行的时间比较长时#xff0c;会有错误发生#xff0c;那么该如何解决这个错误呢#xff1f; 处理concurrent.TimeoutException: Heartbe…背景 在使用flink进行集成测试时我们会使用MiniClusterWithClientResource类但是当我们断点导致在某个方法执行的时间比较长时会有错误发生那么该如何解决这个错误呢 处理concurrent.TimeoutException: Heartbeat of TaskManager with id错误 其实关键的配置是heartbeat.timeout这个错误是JobManager抛出的意思是和某个TaskManager的心跳中断超过了指定的时间我们把这个参数配置到MiniClusterWithClientResource类中就可以了代码如下所示 public class FlinkIntegrationTest {public static final Configuration config Configuration.fromMap(new HashMapString, String() {{put(heartbeat.timeout, 300000);}});ClassRulepublic static MiniClusterWithClientResource flinkCluster new MiniClusterWithClientResource(new MiniClusterResourceConfiguration.Builder().setConfiguration(config).setNumberSlotsPerTaskManager(1).setNumberTaskManagers(3).build());Testpublic void testStateFlatMap() throws Exception {StatefulFlatMap statefulFlatMap new StatefulFlatMap();StreamExecutionEnvironment env StreamExecutionEnvironment.getExecutionEnvironment();// configure your test environmentenv.setParallelism(2);// values are collected in a static variableCollectSink.values.clear();// create a stream of custom elements and apply transformationsenv.fromElements(world, hi).keyBy(e - 1).flatMap(statefulFlatMap).addSink(new CollectSink());// executeenv.execute();// verify your resultsassertTrue(CollectSink.values.containsAll(Lists.newArrayList(hello world, hello hi world)));}Testpublic void testStateFlatMap1() throws Exception {StatefulFlatMap statefulFlatMap new StatefulFlatMap();StreamExecutionEnvironment env StreamExecutionEnvironment.getExecutionEnvironment();// configure your test environmentenv.setParallelism(2);// values are collected in a static variableCollectSink.values.clear();// create a stream of custom elements and apply transformationsenv.fromElements(world, hi, world).keyBy(e - e).flatMap(statefulFlatMap).addSink(new CollectSink());// executeenv.execute();// verify your resultsassertTrue(CollectSink.values.containsAll(Lists.newArrayList(hello world, hello hi, hello world world)));}// create a testing sinkprivate static class CollectSink implements SinkFunctionString {// must be staticpublic static final ListString values Collections.synchronizedList(new ArrayList());Overridepublic void invoke(String value, Context context) throws Exception {values.add(value);}}}
http://www.huolong8.cn/news/273544/

相关文章:

  • 套路网站怎么做的公司建的是网页还是网站
  • 顺义石家庄网站建设北京建设工程造价信息网官网
  • 网站开发和平台开发青岛 企业网站建站
  • 网站的设计制作流程工程公司注册经营范围
  • 在自己的网站做百度搜索框网页制作设计多少费用
  • 罗湖区做网站的公司上海搬家公司收费价目表2021
  • 网站建设需要资质网页制作教程哔哩
  • 北京网站开发制作公司wordpress多级索引
  • 厦门自助网站建设报价湖北网站开发培训
  • 宝坻手机网站建设wordpress视频投票
  • 福州网站设计网址做网站创业怎么样
  • jsp网站开发工资深圳开发公司网站建设比较好的
  • 微信公众号内置手机网站wordpress高级自适应主题下载
  • 响应式网站开发哪个好电子商务网站建设与维护期末答案
  • 郑州网站建设用户wordpress自带的代码高亮
  • 策划方案免费的网站wordpress七牛云加速后图片不显示
  • 十堰市有几家网站公司上海建设监理协会网站
  • 洛阳网站设计哪家专业电子商务网站建设与维护展望
  • 做国外网站什么定位南通网站建设哪家好
  • 网站建设饣首选金手指营销推广有哪些公司
  • 做网站网站代理怎么找客源千万不能 网站
  • 无锡做网站公司哪家好品牌网查询
  • 先学php还是网站建设seo基础知识
  • 合肥制作手机网站台州seo快速排名
  • 网站服务体系郑州做网站企业
  • 旅游酒店网站建设背景分析wordpress银行模板
  • php企业网站cms手机上自己设计房子软件
  • 做网站 php j2ee青岛房产交易中心官网
  • wordpress 建的网站中学生做网站的软件
  • seo站长工具查询app开发与网站开发