- Hadoop ==========
- Verify contents of HDFS
hadoop fs -ls /
- Pi job
hadoop jar /usr/lib/hadoop-0.20-mapreduce/hadoop-examples.jar pi 10 100
- Wordcount job
hadoop fs -mkdir input
hadoop fs -put /etc/hadoop/conf/*.xml input
hadoop jar /usr/lib/hadoop-0.20-mapreduce/hadoop-examples.jar wordcount input output
By the way, if you re-run this job, it will fail. Why is that?