【android 源码 windows】【文字游戏源码】【旅游网站源码】hadoop2.2 wordcount 源码
1.å¦ä½è¿è¡èªå¸¦wordcount-Hadoop2
2.å¦ä½è¿è¡èªå¸¦wordcount
å¦ä½è¿è¡èªå¸¦wordcount-Hadoop2
android 源码 windows1.æ¾å°examplesä¾åæ们éè¦æ¾æè¿ä¸ªä¾åçä½ç½®ï¼é¦å éè¦æ¾å°ä½ çhadoopæ件夹ï¼ç¶åä¾ç §ä¸é¢è·¯å¾ï¼/hadoop/share/hadoop/mapreduce第äºæ¥ï¼æ们éè¦éè¦åä¸ä¸è¿è¡éè¦çå·¥ä½ï¼æ¯å¦è¾å ¥è¾åºè·¯å¾ï¼ä¸ä¼ ä»ä¹æ件çã1.å å¨HDFSå建å 个æ°æ®ç®å½ï¼1.hadoopfs-mkdir-p/data/wordcount2.hadoopfs-mkdir-p/output/2.ç®å½/data/wordcountç¨æ¥åæ¾Hadoopèªå¸¦çWordCountä¾åçæ°æ®æ件ï¼è¿è¡è¿ä¸ªMapReduceä»»å¡çç»æè¾åºå°/output/wordcountç®å½ä¸ãé¦å æ°å»ºæ件inputWordï¼1.vi/usr/inputWordæ°å»ºå®æ¯ï¼æ¥çå 容ï¼å°æ¬å°æ件ä¸ä¼ å°HDFSä¸ï¼å¯ä»¥æ¥çä¸ä¼ åçæ件æ åµï¼æ§è¡å¦ä¸å½ä»¤ï¼1.hadoopfs-ls/data/wordcountå¯ä»¥çå°ä¸ä¼ å°HDFSä¸çæ件ãç»å½å°Webæ§å¶å°ï¼è®¿é®é¾æ¥å¯ä»¥çå°ä»»å¡è®°å½æ åµã
android 源码 windowså¦ä½è¿è¡èªå¸¦wordcount
android 源码 windowsãã1.æ¾å°examplesä¾å
android 源码 windowsããæ们éè¦æ¾æè¿ä¸ªä¾åçä½ç½®ï¼é¦å éè¦æ¾å°ä½ çhadoopæ件夹ï¼ç¶åä¾ç §ä¸é¢è·¯å¾ï¼
android 源码 windowsãã/hadoop/share/hadoop/mapreduceä¼çå°å¦ä¸å¾ï¼
android 源码 windowsããhadoop-mapreduce-examples-2.2.0.jar
android 源码 windowsãã第äºæ¥ï¼
android 源码 windowsããæ们éè¦éè¦åä¸ä¸è¿è¡éè¦çå·¥ä½ï¼æ¯å¦è¾å ¥è¾åºè·¯å¾ï¼ä¸ä¼ ä»ä¹æ件çã
android 源码 windowsãã1.å å¨HDFSå建å 个æ°æ®ç®å½ï¼
android 源码 windowsããhadoop fs -mkdir -p /data/wordcount
android 源码 windowsããhadoop fs -mkdir -p /output/
android 源码 windowsãã2.ç®å½/data/wordcountç¨æ¥åæ¾Hadoopèªå¸¦çWordCountä¾åçæ°æ®æ件ï¼è¿è¡è¿ä¸ªMapReduceä»»å¡çç»æè¾åºå°/output/wordcountç®å½ä¸ã
android 源码 windowsããé¦å æ°å»ºæ件inputWordï¼
android 源码 windowsããvi /usr/inputWord
android 源码 windowsããæ°å»ºå®æ¯ï¼æ¥çå 容ï¼
android 源码 windowsããcat /usr/inputWord
android 源码 windowsããå°æ¬å°æ件ä¸ä¼ å°HDFSä¸ï¼
android 源码 windowsããhadoop fs -put /usr/inputWord /data/wordcount/
android 源码 windowsããå¯ä»¥æ¥çä¸ä¼ åçæ件æ åµï¼æ§è¡å¦ä¸å½ä»¤ï¼
android 源码 windowsããhadoop fs -ls /data/wordcount
android 源码 windowsããå¯ä»¥çå°ä¸ä¼ å°HDFSä¸çæ件ã
android 源码 windowsããéè¿å½ä»¤
android 源码 windowsããhadoop fs -text /data/wordcount/inputWord
android 源码 windowsããçå°å¦ä¸å 容ï¼
android 源码 windowsãã
android 源码 windowsããä¸é¢ï¼è¿è¡WordCountä¾åï¼æ§è¡å¦ä¸å½ä»¤ï¼
android 源码 windowsããhadoop jar /usr/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar wordcount /data/wordcount /output/wordcount
android 源码 windowsãã
android 源码 windowsããå¯ä»¥çå°æ§å¶å°è¾åºç¨åºè¿è¡çä¿¡æ¯
android 源码 windowsããæ¥çç»æï¼æ§è¡å¦ä¸å½ä»¤ï¼
android 源码 windowsããhadoop fs -text /output/wordcount/part-r-
android 源码 windowsç»ææ°æ®ç¤ºä¾å¦ä¸ï¼
android 源码 windowsç»å½å°Webæ§å¶å°ï¼è®¿é®é¾æ¥http.//master:/å¯ä»¥çå°ä»»å¡è®°å½æ åµã
android 源码 windows