[root@hadoop11 ~]# hadoop dfsadmin -safemode get
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Safe mode is OFF
<property>
<name>dfs.safemode.threshold.pct</name>
<value>0.999f</value>
<description>
Specifies the percentage of blocks that should satisfy
the minimal replication requirement defined by dfs.replication.min.
Values less than or equal to 0 mean not to wait for any particular
percentage of blocks before exiting safemode.
Values greater than 1 will make safe mode permanent.
</description>
</property>
[root@hadoop11 hadoop]# hadoop dfsadmin -safemode leave
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Safe mode is OFF
3、could only be replicatied to 0 nodes, instead of 1.
[root@hadoop66 local]# cd /
[root@hadoop66 /]# ls
bin dev home lib64 media mnt opt root selinux sys usr
boot etc lib lost+found misc net proc sbin srv tmp var
[root@hadoop66 /]# du -sh * (这个命令很重要)
7.6M bin
27M boot
264K dev
36M etc
5.4G home
142M lib
26M lib64
16K lost+found
4.0K media
0 misc
4.0K mnt
0 net
8.0K opt
du: cannot access `proc/14788/task/14788/fd/4': No such file or directory
du: cannot access `proc/14788/task/14788/fdinfo/4': No such file or directory
du: cannot access `proc/14788/fd/4': No such file or directory
du: cannot access `proc/14788/fdinfo/4': No such file or directory
0 proc
2.6G root
15M sbin
0 selinux
4.0K srv
0 sys
252K tmp
31G usr
256M var
<property>
<name>hadoop.tmp.dir</name>
<value>/tmp/hadoop-${user.name}</value>
<description>A base for other temporary directories.</description>
</property>