1.查看fsp_w_picpath鏡像文件node
$hdfs oiv -i xxxImage -o xxx.xml -p XML編程
導出後放到eclipse中用shift+ctrl+f進行格式化後查看ubuntu
2.查看edit_xxx編輯日誌文件windows
$hdfs oev -i xxx_edit -o xxx.xml -p XMLeclipse
3.hadoop fs === hdfs dfside
4.$hdfs datanode oop
在前臺運行一個datanode的程序,想要從前臺放到後臺先執行ctrl+z,日誌
而後在能夠用bg %jobnumber將選中的命令調出,xml
%jobnumber是經過jobs命令查到的後臺正在執行的命令的序號(不是pid)。進程
5.在windows編程中須要添加log4j.properties
尋找位置:[{hadoop_home}/etc/hadoop/log4j.properties]
放入到src/log4j.properties中
6.關閉nodemanager和resourcemanager進程
在datanode上執行
$yarn-daemon.sh stop/start nodemanger
在namenode上執行
$yarn-daemon.sh stop/start resourcemanager
7.前臺啓動balancer平衡器
$hdfs balancer
8.合併getmerge命令
$hdfs dfs -getmerge -nl /user/ubuntu/data/hi.txt /user/ubuntu/data/hello.txt ~/merge.txt
實際上就是合併了兩個內容,並下載到了本地