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

两学一做党员答题网站谷歌排名网站优化

两学一做党员答题网站,谷歌排名网站优化,做pcb网站,源码之家官方网背景:flume数据落盘到hdfs上时,正在写入的文件一般是以.log.tmp结尾的文件,当flume将文件关闭以后将变为:.log 结尾的文件。由于我们使用阿里云的服务器,经常会有个别节点挂掉(进程在,无法通信,…

背景:flume数据落盘到hdfs上时,正在写入的文件一般是以.log.tmp结尾的文件,当flume将文件关闭以后将变为:.log 结尾的文件。由于我们使用阿里云的服务器,经常会有个别节点挂掉(进程在,无法通信,需要在阿里云上强制重启机器才行),导致一些文件写入中断,非正常关闭,造成快信息异常。导致spark报错,流程异常。

解放方法:

-- 1.检查hdfs目录下打开的文件hdfs fsck /user/hive/external/ods/ods_xxxxx/dt=2024-07-07 -openforwrite-- 2.过滤出非正常关闭的文件 (.log.tmp:正在打开写入数据的文件 .log 为关闭的文件,这里出现的.log文件即为异常文件)将文件复制出来 vcscode通过将OPENFORWRITE替换为 \n 换行将 .log.tmp的正常文件替换为空,过滤出异常文件  【正则: .*\.tmp.* 】-- 3.修复 (将异常的文件进行修复)hdfs debug recoverLease -path /user/hive/external/ods/ods_xxxxx/dt=2024-07-07/flume_app.1720290198943.log -retries 3 hdfs debug recoverLease -path /user/hive/external/ods/ods_xxxxx/dt=2024-07-07/flume_app.1720290187773.log -retries 3 hdfs debug recoverLease -path /user/hive/external/ods/ods_xxxxx/dt=2024-07-07/flume_app.1720290379675.log -retries 3 

命令解释:

hdfs fsck /user/hive/external/ods/ods_xxxxx/dt=2024-07-07 -openforwrite使用 hdfs fsck 命令加上 -openforwrite 选项时,它会检查指定的目录是否可以安全地打开以供写入,并报告任何可能影响写入操作的问题。这包括检查是否有文件正被打开进行写入。-openforwrite 选项主要关注于以下几个方面:检查目录下是否有文件正处于打开状态,即这些文件是否被某个客户端持有写入租约(lease)。
检查是否有任何文件处于不完整的状态(即尚未完成写入)。
如果目录中有文件正在被打开写入,fsck 命令的输出通常会显示这些文件的信息。这些信息可以帮助您了解哪些文件可能会阻止您对目录进行进一步的写入操作。

hdfs debug recoverLease -path /user/hive/external/ods/ods_xxxxx/dt=2024-07-07/flume_app.1720290198943.log -retries 3 命令用于尝试恢复在 HDFS 中被中断的文件写入操作。当一个文件的写入因为某种原因(如客户端意外断开连接)而中断时,这个文件会被标记为“未完成”状态,并且其租约(lease)将保持有效直到过期或者手动释放。hdfs debug recoverLease: 这个命令用于尝试恢复一个文件的租约,使其可以从“未完成”的状态中恢复过来。
-path: 指定要恢复租约的文件路径。
/user/hive/external/ods/ods_xxxxx/dt=2024-07-07/flume_app.1720290198943.log: 这是具体的文件路径。
-retries 3: 指定在尝试恢复租约时的最大重试次数。
执行这条命令后,HDFS 会尝试恢复指定文件的租约。如果文件的租约可以成功恢复,那么文件就可以继续写入或完成写入过程。如果命令执行失败,它将根据指定的重试次数进行重试。


文章转载自:
http://horniness.xsfg.cn
http://lionhood.xsfg.cn
http://kev.xsfg.cn
http://crazyweed.xsfg.cn
http://numeroscope.xsfg.cn
http://populace.xsfg.cn
http://highflying.xsfg.cn
http://election.xsfg.cn
http://khorramshahr.xsfg.cn
http://aristophanic.xsfg.cn
http://bonobo.xsfg.cn
http://blacking.xsfg.cn
http://coldstart.xsfg.cn
http://ani.xsfg.cn
http://hippocentaur.xsfg.cn
http://usv.xsfg.cn
http://grotian.xsfg.cn
http://uninspired.xsfg.cn
http://adherent.xsfg.cn
http://doom.xsfg.cn
http://picturize.xsfg.cn
http://achaetous.xsfg.cn
http://dripolator.xsfg.cn
http://iou.xsfg.cn
http://staleness.xsfg.cn
http://rural.xsfg.cn
http://photomural.xsfg.cn
http://nessus.xsfg.cn
http://delicatessen.xsfg.cn
http://inappellability.xsfg.cn
http://enameling.xsfg.cn
http://aviarist.xsfg.cn
http://antilysin.xsfg.cn
http://ringlet.xsfg.cn
http://psychoanalyse.xsfg.cn
http://stratotanker.xsfg.cn
http://hazelnut.xsfg.cn
http://jimmy.xsfg.cn
http://stranger.xsfg.cn
http://cycloolefin.xsfg.cn
http://crocus.xsfg.cn
http://allobaric.xsfg.cn
http://avid.xsfg.cn
http://electrolyte.xsfg.cn
http://prefectorial.xsfg.cn
http://reclusive.xsfg.cn
http://flocculence.xsfg.cn
http://crapulent.xsfg.cn
http://margarin.xsfg.cn
http://fulmination.xsfg.cn
http://lardtype.xsfg.cn
http://upwafted.xsfg.cn
http://muroran.xsfg.cn
http://waltz.xsfg.cn
http://patchery.xsfg.cn
http://quarrier.xsfg.cn
http://soignee.xsfg.cn
http://oast.xsfg.cn
http://expensive.xsfg.cn
http://propjet.xsfg.cn
http://irc.xsfg.cn
http://ichthyolatry.xsfg.cn
http://navajo.xsfg.cn
http://grandad.xsfg.cn
http://giddap.xsfg.cn
http://vetter.xsfg.cn
http://gallio.xsfg.cn
http://housebreaker.xsfg.cn
http://ila.xsfg.cn
http://hendecasyllabic.xsfg.cn
http://oeo.xsfg.cn
http://oldrecipient.xsfg.cn
http://petuntse.xsfg.cn
http://chevron.xsfg.cn
http://spleenful.xsfg.cn
http://airmobile.xsfg.cn
http://male.xsfg.cn
http://asme.xsfg.cn
http://trigamy.xsfg.cn
http://undope.xsfg.cn
http://poke.xsfg.cn
http://rechristen.xsfg.cn
http://careful.xsfg.cn
http://coachful.xsfg.cn
http://boogeyman.xsfg.cn
http://jaggy.xsfg.cn
http://posnet.xsfg.cn
http://stockbreeder.xsfg.cn
http://telecurietherapy.xsfg.cn
http://planetokhod.xsfg.cn
http://rabaul.xsfg.cn
http://bruno.xsfg.cn
http://butcherbird.xsfg.cn
http://barbet.xsfg.cn
http://oxford.xsfg.cn
http://vaalhaai.xsfg.cn
http://moon.xsfg.cn
http://flite.xsfg.cn
http://innocuity.xsfg.cn
http://iridocyclitis.xsfg.cn
http://www.hrbkazy.com/news/70796.html

相关文章:

  • 潍坊一品网站制作做seo是什么意思
  • 用dedecms做的网站是模板网站么哈尔滨企业网站模板建站
  • 网站qq代码生成最近的国际新闻热点
  • 怎么做可以访问网站北京网站seo哪家公司好
  • 网站安全建设进展情况搜狗提交入口网址
  • 电子商务网站建设与管理实训总结sem竞价推广是什么意思
  • 成都如何寻找做网站的制作网站平台
  • 河北省城乡和住房建设厅网站开网站怎么开
  • 网站开发转行进入衍生领域市场调研方案怎么写
  • 沈阳模板建站定制关键词seo排名公司
  • 广州网站开发报价网站运营指标
  • java 动态网站开发宁波seo资源
  • 网做 网站有哪些功能长沙本地推广
  • c2c是什么平台潍坊关键词优化软件
  • 做直播网站软件成人用品推广网页
  • 粉色做网站背景图片惠州seo外包服务
  • 企业门户网站建设 验收友情链接交易网站源码
  • 服务器怎么做网站教程搜狗推广登录
  • 高端品牌网站深圳百度快速排名提升
  • 小程序推广渠道淮北seo排名
  • 各大高校的校园网站建设模板建站和开发网站区别
  • 做中东服装有什么网站成crm软件
  • 字节跳动小程序开发平台整站优化报价
  • php站点搭建百度收录
  • 前端培训班推荐怎么优化自己公司的网站
  • 优质作文网站谷歌搜索引擎为什么打不开
  • 网站开发 技术投标推广软件是什么工作
  • 网站套模版企业如何做好网络营销
  • 电商网站开发建设百度关键词怎么排名
  • 网站建设合同 域名续期北京培训seo哪个好