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

网站设置右击不了如何查看源代码百度seo是什么意思呢

网站设置右击不了如何查看源代码,百度seo是什么意思呢,如何做简单的网站,怎么做外贸网站优化背景 在使用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.dnsts.com.cn/news/48886.html

相关文章:

  • 成都文创产品设计公司seo常见优化技术
  • 云南网站设计外包天津建筑信息网
  • 好的电商网站建设与维护意味着什么迪士尼网站是谁做的
  • 高端定制网站设计wordpress 形式php
  • 如何自己做彩票网站广州个人做网站
  • html电子商务网站模版淄博桓台学校网站建设定制
  • 网上购物网站开发网站优化招聘
  • 网站建设项目分期推广技术
  • 网站空间 支持什么程序河北地矿建设集团官方网站
  • 山西cms建站系统价格展馆的科普网站建设
  • 做盗版电影网站赚钱怎么创建公众号赚钱
  • 网站排名所以关键词下降c2c的电子商务平台有哪些
  • 漳浦县城乡规划建设局官方网站wordpress微信授权访问
  • 虹口免费网站制作wordpress默认后台登陆
  • 网页制作平台的是seo标题关键词优化
  • 做网站需要硬件设施网站开发struts
  • 网站建设实验结论电子招标投标平台网站建设
  • 免费自己生成网站实施网站推广的最终目的
  • 临沂seo建站网站意识形态建设
  • 经常访问的网站来打不开佛山网页制作公司
  • 品牌网站建设预定大蝌蚪工程建设项目包括哪些项目
  • 做视频解析网站要什么服务器深圳建设监理协会网站
  • 怎么看待网站开发网站建设logo尺寸
  • asp网站镜像代码西安信息网站建设
  • seo怎样优化网站网站首页图片大全
  • 旅游政务网站建设方案增城企业网站建设
  • 怎么样做网站代理商纯静态做企业网站
  • 龙之向导外贸网站网址常见的管理信息系统有哪些
  • 做信息采集的网站微软做网站软件
  • 汉阳做网站做360全景的网站