hadoop libdai 常用指令

/opt/hadoop-1.0.4/bin/hadoop namenode -format

/opt/hadoop-1.0.4/bin/stop-all.sh

/opt/hadoop-1.0.4/bin/start-all.sh 

安全模式

hadoop dfsadmin -safemode leave

放sample.txt

hadoop fs -rm sample.txt

hadoop fs -put sample.txt sample.txt

运行程序

hadoop fs -rm bin/em

hadoop fs -put em bin/em

hadoop fs -rmr output

 hadoop pipes -D hadoop.pipes.java.recordreader=true -D hadoop.pipes.java.recordwriter=true -input sample.txt -output output -program bin/em

hadoop fs -cat output/*


  hadoop job -kill job_201207121738_0001



你可能感兴趣的:(hadoop libdai 常用指令)