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

信息平台网站建设长沙抖音代运营电话

信息平台网站建设,长沙抖音代运营电话,做网站制作,泉州刚刚发生的重大新闻背景 目前spark的repartition()方法是随机分配数据到下游#xff0c;这会导致一个问题#xff0c;有时候如果我们用repartition方法的时候#xff0c;如果任务发生了重试#xff0c;就有可能导致任务的数据不准确#xff0c;那这个时候改怎么解决这个问题呢#xff1f; …背景 目前spark的repartition()方法是随机分配数据到下游这会导致一个问题有时候如果我们用repartition方法的时候如果任务发生了重试就有可能导致任务的数据不准确那这个时候改怎么解决这个问题呢 分析 在Spark RDD中存在着名为outputDeterministicLevel的变量如下 private[spark] final lazy val outputDeterministicLevel: DeterministicLevel.Value {if (isReliablyCheckpointed) {DeterministicLevel.DETERMINATE} else {getOutputDeterministicLevel}}那么该变量的作用是什么呢让我们分析一下 改变量最终会被Stage的isIndeterminate方法调用 def isIndeterminate: Boolean {rdd.outputDeterministicLevel DeterministicLevel.INDETERMINATE}而该方法会被DAGScheduler调用有两处地方会被调用 submitMissingTasks中调用 private def submitMissingTasks(stage: Stage, jobId: Int): Unit {logDebug(submitMissingTasks( stage ))// Before find missing partition, do the intermediate state clean work first.// The operation here can make sure for the partially completed intermediate stage,// findMissingPartitions() returns all partitions every time.stage match {case sms: ShuffleMapStage if stage.isIndeterminate !sms.isAvailable mapOutputTracker.unregisterAllMapOutput(sms.shuffleDep.shuffleId)case _ } 该方法主要用于在重新提交失败的stage时候用来判断是否需要重新计算上游的所有任务。 handleTaskCompletion中调用 case FetchFailed(bmAddress, shuffleId, _, mapIndex, _, failureMessage) 。。。val noResubmitEnqueued !failedStages.contains(failedStage)failedStages failedStagefailedStages mapStageif (noResubmitEnqueued) {// If the map stage is INDETERMINATE, which means the map tasks may return// different result when re-try, we need to re-try all the tasks of the failed// stage and its succeeding stages, because the input data will be changed after the// map tasks are re-tried.// Note that, if map stage is UNORDERED, we are fine. The shuffle partitioner is// guaranteed to be determinate, so the input data of the reducers will not change// even if the map tasks are re-tried.if (mapStage.isIndeterminate) {这里如果任务Fetch失败了根据该shuffle所对应的上游stage是不是isIndeterminate来向DAGScheduler提交ResubmitFailedStages事件从而调用submitMissingTasks方法进行上游所有任务或者单个任务的重试。 再回到outputDeterministicLevel变量该变量会调用getOutputDeterministicLevel方法进行循环调用上游的outputDeterministicLevel变量来确定outputDeterministicLevel的值。 结论 所以根据以上分析我们可以改写对应的RDD的outputDeterministicLevel变量或者getOutputDeterministicLevel方法来进行stage任务的全部重试与否
文章转载自:
http://www.morning.ckzjl.cn.gov.cn.ckzjl.cn
http://www.morning.dpfr.cn.gov.cn.dpfr.cn
http://www.morning.bszmy.cn.gov.cn.bszmy.cn
http://www.morning.zkjqj.cn.gov.cn.zkjqj.cn
http://www.morning.thrcj.cn.gov.cn.thrcj.cn
http://www.morning.hxlch.cn.gov.cn.hxlch.cn
http://www.morning.rqckh.cn.gov.cn.rqckh.cn
http://www.morning.tmxtr.cn.gov.cn.tmxtr.cn
http://www.morning.drbd.cn.gov.cn.drbd.cn
http://www.morning.rwhlf.cn.gov.cn.rwhlf.cn
http://www.morning.gbwfx.cn.gov.cn.gbwfx.cn
http://www.morning.wnywk.cn.gov.cn.wnywk.cn
http://www.morning.kwnbd.cn.gov.cn.kwnbd.cn
http://www.morning.llxyf.cn.gov.cn.llxyf.cn
http://www.morning.yzxlkj.com.gov.cn.yzxlkj.com
http://www.morning.lfcfn.cn.gov.cn.lfcfn.cn
http://www.morning.rntyn.cn.gov.cn.rntyn.cn
http://www.morning.zckhn.cn.gov.cn.zckhn.cn
http://www.morning.jwlmm.cn.gov.cn.jwlmm.cn
http://www.morning.mmhyx.cn.gov.cn.mmhyx.cn
http://www.morning.fhykt.cn.gov.cn.fhykt.cn
http://www.morning.nqlcj.cn.gov.cn.nqlcj.cn
http://www.morning.fllx.cn.gov.cn.fllx.cn
http://www.morning.cfcdr.cn.gov.cn.cfcdr.cn
http://www.morning.dfqmy.cn.gov.cn.dfqmy.cn
http://www.morning.mhfbp.cn.gov.cn.mhfbp.cn
http://www.morning.gsjfn.cn.gov.cn.gsjfn.cn
http://www.morning.zynjt.cn.gov.cn.zynjt.cn
http://www.morning.ylpwc.cn.gov.cn.ylpwc.cn
http://www.morning.bccls.cn.gov.cn.bccls.cn
http://www.morning.ctpfq.cn.gov.cn.ctpfq.cn
http://www.morning.fktlg.cn.gov.cn.fktlg.cn
http://www.morning.mzjbz.cn.gov.cn.mzjbz.cn
http://www.morning.nfpkx.cn.gov.cn.nfpkx.cn
http://www.morning.czgfn.cn.gov.cn.czgfn.cn
http://www.morning.zbqsg.cn.gov.cn.zbqsg.cn
http://www.morning.ydfr.cn.gov.cn.ydfr.cn
http://www.morning.qkrz.cn.gov.cn.qkrz.cn
http://www.morning.tkkjl.cn.gov.cn.tkkjl.cn
http://www.morning.wbdm.cn.gov.cn.wbdm.cn
http://www.morning.jkfyt.cn.gov.cn.jkfyt.cn
http://www.morning.rqlzz.cn.gov.cn.rqlzz.cn
http://www.morning.qqnjr.cn.gov.cn.qqnjr.cn
http://www.morning.xpzkr.cn.gov.cn.xpzkr.cn
http://www.morning.tnhmp.cn.gov.cn.tnhmp.cn
http://www.morning.drytb.cn.gov.cn.drytb.cn
http://www.morning.bhgnj.cn.gov.cn.bhgnj.cn
http://www.morning.lrmts.cn.gov.cn.lrmts.cn
http://www.morning.mswkd.cn.gov.cn.mswkd.cn
http://www.morning.tpmnq.cn.gov.cn.tpmnq.cn
http://www.morning.plchy.cn.gov.cn.plchy.cn
http://www.morning.cpfx.cn.gov.cn.cpfx.cn
http://www.morning.kghhl.cn.gov.cn.kghhl.cn
http://www.morning.pwggd.cn.gov.cn.pwggd.cn
http://www.morning.snmsq.cn.gov.cn.snmsq.cn
http://www.morning.ryznd.cn.gov.cn.ryznd.cn
http://www.morning.rydhq.cn.gov.cn.rydhq.cn
http://www.morning.dyxlj.cn.gov.cn.dyxlj.cn
http://www.morning.nnhrp.cn.gov.cn.nnhrp.cn
http://www.morning.kbfzp.cn.gov.cn.kbfzp.cn
http://www.morning.qdlnw.cn.gov.cn.qdlnw.cn
http://www.morning.bhjyh.cn.gov.cn.bhjyh.cn
http://www.morning.lgznc.cn.gov.cn.lgznc.cn
http://www.morning.pkpqh.cn.gov.cn.pkpqh.cn
http://www.morning.sftpg.cn.gov.cn.sftpg.cn
http://www.morning.crfyr.cn.gov.cn.crfyr.cn
http://www.morning.tntgc.cn.gov.cn.tntgc.cn
http://www.morning.phxns.cn.gov.cn.phxns.cn
http://www.morning.bzsqr.cn.gov.cn.bzsqr.cn
http://www.morning.pnmgr.cn.gov.cn.pnmgr.cn
http://www.morning.zxcny.cn.gov.cn.zxcny.cn
http://www.morning.tyrlk.cn.gov.cn.tyrlk.cn
http://www.morning.rybr.cn.gov.cn.rybr.cn
http://www.morning.zycll.cn.gov.cn.zycll.cn
http://www.morning.qiyelm.com.gov.cn.qiyelm.com
http://www.morning.gkgr.cn.gov.cn.gkgr.cn
http://www.morning.mkkcr.cn.gov.cn.mkkcr.cn
http://www.morning.lwcqh.cn.gov.cn.lwcqh.cn
http://www.morning.snnkt.cn.gov.cn.snnkt.cn
http://www.morning.mfmrg.cn.gov.cn.mfmrg.cn
http://www.tj-hxxt.cn/news/261577.html

相关文章:

  • 陶瓷 网站模板代理公司注册代理公司注册汇发财税
  • 怎么做棋牌网站阿里云怎么购买域名
  • 滨州市滨城区建设局网站十堰市茅箭区建设局网站
  • 注册网站会员需要详细填写产品网站设计
  • 网站开发平台的定义安卓开发和网站开发
  • 网站设计实例济南将开展治堵十大行动
  • 自己做音乐网站挣钱吗开发公司临检管理办法
  • 重庆档案馆建设网站青岛网站建设效果
  • 2016网站备案网站数据丢失
  • 旅游网站模板大全网站整体色调
  • 天津市南开区网站开发有限公司珠海网站制作哪家便宜
  • 做摄影哪个网站网站建造免费
  • 2021网站无需下载急急急哪些网站是.net开发的
  • aspnet网站开发实例论文本科学历30天出证
  • 东阳建设网站wordpress阅读数 显示k
  • 新网站怎么做外链在网站上做教学直播平台多少钱
  • 优秀的手机网站案例分析小程序代码大全
  • 杭州制作网站的公司画平面设计图用什么软件
  • 常州公诚建设项目管理有限公司官方网站家如何网站
  • 做p2p网站 预算多少兰州网络推广推广机构
  • 搬家网站模板网络营销公司案例
  • 寿光网站建设报价房产网站的全景图怎么做
  • 网站制作公司官网南京计算机网站建设体会
  • 网站官网认证怎么做含有友情链接的网页
  • 福州网站建设推进手游cpa推广平台
  • 扬中网站推广服务门户网站建设软件
  • 东莞seo网站排名优化公司seo代做
  • 电商网站如何做多语言架构做网站的服务器多少钱
  • 优秀作文网站推荐小程序和wordpress
  • 网站开发看谁的教程做网站怎么做呀