RHEL7.2 安装Hadoop 2.8.2(7)

[hadoop@hadoop02 hadoop]$ hdfs dfsadmin -report
Configured Capacity: 0 (0 B)
Present Capacity: 0 (0 B)
DFS Remaining: 0 (0 B)
DFS Used: 0 (0 B)
DFS Used%: NaN%
Under replicated blocks: 0
Blocks with corrupt replicas: 0
Missing blocks: 0
Missing blocks (with replication factor 1): 0
Pending deletion blocks: 0

问题可能出在2个地方
1 core-site.xml的fs.default.name配置不对;
2 防火墙没有关闭

查看文件块

[hadoop@hadoop02 bin]$ hdfs fsck / -files -blocks
Connecting to namenode via :50070/fsck?ugi=hadoop&files=1&blocks=1&path=%2F
FSCK started by hadoop (auth:SIMPLE) from /192.168.169.102 for path / at Sun Nov 05 22:25:18 CST 2017
/ <dir>
/tmp <dir>
/tmp/hadoop-yarn <dir>
/tmp/hadoop-yarn/staging <dir>
/tmp/hadoop-yarn/staging/history <dir>
/tmp/hadoop-yarn/staging/history/done <dir>
/tmp/hadoop-yarn/staging/history/done_intermediate <dir>
Status: HEALTHY
 Total size:    0 B
 Total dirs:    7
 Total files:  0
 Total symlinks:        0
 Total blocks (validated):  0
 Minimally replicated blocks:  0
 Over-replicated blocks:    0
 Under-replicated blocks:  0
 Mis-replicated blocks:    0
 Default replication factor:    2
 Average block replication: 0.0
 Corrupt blocks:        0
 Missing replicas:      0
 Number of data-nodes:      2
 Number of racks:      1
FSCK ended at Sun Nov 05 22:25:18 CST 2017 in 6 milliseconds
 
 
The filesystem under path '/' is HEALTHY

web查看FDFS:
:50070
web查看集群
:8088

Hadoop项目之基于CentOS7的Cloudera 5.10.1(CDH)的安装部署 

Hadoop2.7.2集群搭建详解(高可用) 

使用Ambari来部署Hadoop集群(搭建内网HDP源) 

Ubuntu 14.04下Hadoop集群安装 

CentOS 6.7安装Hadoop 2.7.2 

Ubuntu 16.04上构建分布式Hadoop-2.7.3集群 

CentOS 7.3下Hadoop2.8分布式集群安装与测试 

CentOS 7 下 Hadoop 2.6.4 分布式集群环境搭建 

Hadoop2.7.3+Spark2.1.0完全分布式集群搭建过程 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/41358d4e664c7985065d764fb0b0b258.html