Administration Lab 3: Working with
MapReduce
Restore the Last
State of VM



for x in /etc/init.d/hadoop-* ; do sudo $x stop; done
for x in /etc/init.d/hadoop-* ; do sudo $x start; done
Calcualte PI

hadoop-0.20 jar
/usr/lib/hadoop-0.20/hadoop-0.20.2-cdh3u0-*examples.jar pi 10 10000


Execute Word Count


hadoop-0.20 dfs -put ./test.txt
/test.txt

hadoop-0.20 dfs -ls/
hadoop-0.20 jar
/usr/lib/hadoop-0.20/hadoop-0.20.2-cdh3u1-*examples.jar wordcount /test.txt
/output

hadoop-0.20 dfs -ls /output

hadoop-0.20 dfs -cat /output/part
No comments:
Post a Comment