????6.???????????????????????μ?DFS Locations?μ?MyHadoopServer??????????У??????home/hxsyl/tmp????????5??????????????У????????user/root/In??Out??
???????root??????4???μ???????????In??Out???????????WordCount??????????????????WordCount????????д????????????????run-as??run configurations??parameters??????????????????????WordCount.java???????????????????????run-as??run configurations??parameters????????????parameters??????????
????<span style="font-family: ????; font-size: 18pt;">hdfs://localhost:9000/user/root/In
????hdfs://localhost:9000/user/root/Out
????</span>
?????????????In????????hdfs?????????????????????usr?????????testHadoop?????
????<span style="font-family: ????; font-size: 18pt;">sudo mkdir testHadoop
????</span>
?????????????????
????<span style="font-family: ????; font-size: 18pt;">//test1??2???????testHadoop???????????
????echo “hello world” >test1
????echo "hello hadoop" >test2
????</span>
????????????????hdfs
????<span style="font-family: ????; font-size: 18pt;">//?????testHadoop????????У??????????????Hadoop????У??????????hadoop???????
????//?????????cd???в??????hadoop????У????????????????????????????
????//????????./testHadoop???д·??????????????
????usr/hadoop1.2.1file/hadoop-1.2.1/bin/hadoop fs -put ./testHadoop In
????//???./testHadoop???????tab???????./testHadoop??? ???????????/???????????In?????????hdfs???????????
????//???In??????????????????????????????
????usr/hadoop1.2.1file/hadoop-1.2.1/bin/hadoop fs -ls ./testHadoop
????//??????????????????????hdfs???????д???*??????????д????У???????????????hdfs????????????hdfs???????????????DFS Locations????user/root/In?????
????</span>
????7.???úú????У??????DFS Locations ?? user/root/Out??part-r-0000????£?????????
????<span style="font-family: ????; font-size: 18pt;">hadoop  1
????hello   2
????world   1
????</span>
????????????????????????WordCount???????????????hdfs????????????hadoop
????<span style="font-family: ????; font-size: 18pt;">cd usr/hadoop1.2.1file/hadoop-1.2.1
????</span>
??????????д???????
????<span style="font-family: ????; font-size: 18pt;">//????WordCount??ī???????в??????Сд
????bin/hadoop jar hadoop-examples-1.2.1.jar wordcount In Out
????</span>
????????????????????????????bin????????????????????в????????????????
???????????н????
????<span style="font-family: ????; font-size: 18pt;">bin/hadoop fs -cat ./Out/part-r-00000
????</span>
??????.?????P????????
????3.1 ????????
????1.???????win?????linux?????????У??????????????棬??mv
????2.xml????????????????????????????棬???????????????????save?????????????????????
????<span style="font-family: ????; font-size: 18pt;">//?????jdk?????????
????sudo gedit /etc/profile
????</span>
????ī???????????????????root????ò??????????????ν???ubuntu???????????????root??
????3.2 ??????
?????????????к?DFS Locations?????????????