zoukankan      html  css  js  c++  java
  • HDFS under replicated blocks

    under replicated blocks 
    解决:
    找出没有复制的block:
    hdfs fsck / | grep 'Under replicated' | awk -F':' '{print $1}' >> /tmp/under_replicated_files 
    然后循环修复:
    for hdfsfile in `cat /tmp/under_replicated_files`; do echo "Fixing $hdfsfile :" ;  hadoop fs -setrep 3 $hdfsfile; done
    输出如下:
    Fixing /user/hdfs/.staging/job_1547173493660_0405/job.jar :
    Replication 3 set: /user/hdfs/.staging/job_1547173493660_0405/job.jar
    Fixing /user/hdfs/.staging/job_1547173493660_0405/job.split :
    Replication 3 set: /user/hdfs/.staging/job_1547173493660_0405/job.split
    Fixing /user/hdfs/.staging/job_1547173493660_0481/job.jar :
    Replication 3 set: /user/hdfs/.staging/job_1547173493660_0481/job.jar
    Fixing /user/hdfs/.staging/job_1547173493660_0481/job.split :
    Replication 3 set: /user/hdfs/.staging/job_1547173493660_0481/job.split
    Fixing /user/hdfs/.staging/job_1547173493660_0483/job.jar :
    Replication 3 set: /user/hdfs/.staging/job_1547173493660_0483/job.jar
    Fixing /user/hdfs/.staging/job_1547173493660_0483/job.split :
    Replication 3 set: /user/hdfs/.staging/job_1547173493660_0483/job.split
    Fixing /user/hdfs/.staging/job_1547197402450_0021/job.jar :
    Replication 3 set: /user/hdfs/.staging/job_1547197402450_0021/job.jar
    Fixing /user/hdfs/.staging/job_1547197402450_0021/job.split :
    Replication 3 set: /user/hdfs/.staging/job_1547197402450_0021/job.split
  • 相关阅读:
    他们在清华的那几年——清华学长语录
    java正则表达非捕获组详解
    VC++ 6.0 快捷键大全
    vs2008的使用
    css的一些基本概念
    VC项目配置基础
    企业该如何规划建设自身的网站
    IT技术人员的薪资到底该如何定?
    高级程序员应该具备什么能力
    软件项目为什么成功率不高
  • 原文地址:https://www.cnblogs.com/shanhua-fu/p/11344790.html
Copyright © 2011-2022 走看看