[root@master home]# hadoop fs -put /home/tmp/test.txt /database/test/asoku_us_2016-07-13
put: Cannot create file/database/test/asoku_us_2016-07-13._COPYING_. Name node is in safe mode.
解决:
hadoop dfsadmin -safemode leave
<property>
<name>dfs.safemode.threshold.pct</name>
<value>0.899f</value>
</property>
其实是内存不足问题:
[root@master home]# df -hl
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 18G 1.4G 93% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 24K 3.9G 1% /dev/shm
tmpfs 3.9G 13M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 783M 0 783M 0% /run/user/0
删掉一些大文件就好了。
转载请注明原文地址: https://ju.6miu.com/read-1291013.html