hadoop wordcount编译执行

刚试了个wordcount,

1. eclipse is for compile the program wordcount.java and jar it.

2. hadoop successfully start. HADOOP_HOME HADOOP_CLASSPATH is configurated well.

3. some dfs command :

                              bin/hadoop dfs -ls

                              bin/hadoop dfs -copyFromLocal localfile hdfsfile

                              bin/hadoop dfs -cp sourcehdfsfile destinationhdfsfile

                              bin/hadoop dfs -cat destinationhdfsfile

4. hadoop run the jar command:

                              bin/hadoop jar jarpath inputpath outputpath

 

5. we can put all the jar in a short path dir, and put inputfile in a jarname+input, outputfile in a jarname+output

你可能感兴趣的:(eclipse,hadoop)