linux指令和文件系统

linux root用户的主目录是 /root , 其余用户在 /home 中;

tar 常用 tar -zxvf ;

安装使用 yum or wget website;

mv a.g b.g 重命名 ;mv a 目录 移动;

关闭防火墙:service iptables stop;

编译mapreduce文件:javac -classpath /usr/hadoop/hadoop-core-1.2.1.jar -d class WordCount.java;

打包mapreduce文件:jar cvf wordcount.jar -C class/ .

执行mapreduce文件:hadoop jar wordcount.jar WordCount /user/hadoop/input /user/hadoop/wordcount_output

原文地址:https://www.cnblogs.com/zhang-qc/p/5966688.html