Hadoop 查看某个文件分成几个块,分别在那台机架的哪个机器上「建议收藏」

Hadoop 查看某个文件分成几个块,分别在那台机架的哪个机器上「建议收藏」Hadoop 查看某个文件分成几个块,分别在那台机架的哪个机器上

大家好,又见面了,我是你们的朋友全栈君。

hadoop fsck /usr/input/a.txt -files -blocks -locations -racks

[root@node1 sbin]# hadoop fsck /usr/input/a.txt -files  -blocks -locations -racks
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

Connecting to namenode via http://node1:50070
FSCK started by root (auth:SIMPLE) from /192.168.88.128 for path /usr/input/a.txt at Mon Oct 03 05:14:10 CST 2016
/usr/input/a.txt 10 bytes, 1 block(s):  OK
0. BP-703567924-192.168.88.128-1455139267725:blk_1073742302_1478 len=10 repl=3 [/default-rack/192.168.88.130:50010, /default-rack/192.168.88.129:50010, /default-rack/192.168.88.131:50010]

Status: HEALTHY
 Total size:	10 B
 Total dirs:	0
 Total files:	1
 Total symlinks:		0
 Total blocks (validated):	1 (avg. block size 10 B)
 Minimally replicated blocks:	1 (100.0 %)
 Over-replicated blocks:	0 (0.0 %)
 Under-replicated blocks:	0 (0.0 %)
 Mis-replicated blocks:		0 (0.0 %)
 Default replication factor:	3
 Average block replication:	3.0
 Corrupt blocks:		0
 Missing replicas:		0 (0.0 %)
 Number of data-nodes:		3
 Number of racks:		1
FSCK ended at Mon Oct 03 05:14:10 CST 2016 in 17 milliseconds


The filesystem under path '/usr/input/a.txt' is HEALTHY

转自:https://blog.csdn.net/u011317245/article/details/53386067

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/106042.html原文链接:https://javaforall.net

(0)
上一篇 2022年4月23日 下午11:00
下一篇 2022年4月23日 下午11:20


相关推荐

  • ManualResetEvent浅谈

    ManualResetEvent浅谈C#中ManualResetEvent的开关作用贴代码usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;usingSystem.Threading.Tasks;namespacetest01{clas…

    2022年7月18日
    28
  • cacheable更新_Spring之缓存注解@Cacheable

    cacheable更新_Spring之缓存注解@Cacheable从 3 1 开始 Spring 引入了对 Cache 的支持 其使用方法和原理都类似于 Spring 对事务管理的支持 SpringCache 是作用在方法上的 其核心思想是这样的 当我们在调用一个缓存方法时会把该方法参数和返回结果作为一个键值对存放在缓存中 等到下次利用同样的参数来调用该方法时将不再执行该方法 而是直接从缓存中获取结果进行返回 所以在使用 SpringCache 的时候我们要保证我们缓存的方法对

    2026年3月18日
    2
  • Shell if else语句「建议收藏」

    Shell if else语句「建议收藏」Shellifelse语句if语句通过关系运算符判断表达式的真假来决定执行哪个分支。Shell有三种if…else语句:if…fi语句; if…else…fi语句; if…elif…else…fi语句。1)if…else语句if…else语句的语法:if[expression…

    2022年7月11日
    27
  • MySQL数据库应用与开发答案_MySQL数据库应用与开发习题解答与上机指导

    MySQL数据库应用与开发答案_MySQL数据库应用与开发习题解答与上机指导目录第 1 部分 MySQL 数据库应用与开发 习题参考答案第 1 章 MySQL 数据库概述 1 1 教学要求 1 1 1 基本要求 1 1 2 重点与难点 1 2 习题参考答案第 2 章 MySQL 语言基础 2 1 教学要求 2 1 1 基本要求 2 1 2 重点与难点 2 2 习题参考答案第 3 章 MySQL 数据库的基本操作 3 1 教学要求 3 1 1 基本要求 3 1 2 重点与难点 3 2 习题参考答案第 4 章表及数据完整性 4 1 教学要求 4 1 1 基本要求 4

    2025年6月26日
    5
  • OpenClaw 远程访问配置指南

    OpenClaw 远程访问配置指南

    2026年3月15日
    2
  • Spring整合MyBatis——超详细

    Spring整合MyBatis——超详细Spring整合MyBatis——超详细一、Spring整合MyBatis的三个关键点二、整合步骤1、创建一个Maven项目2、在pom.xml文件中添加jar包的依赖2、配置MyBatis文件(1)新建一个实体类的包和User实体类(2)编写实体类(3)新建Mapper接口包和UserMapper接口(3)新建jdbc资源文件jdbc-config.properties(4)新建mybatis配置文件mybatis.xml(5)新建logj4j的日志配置文件log4j.properties

    2022年6月5日
    50

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号