Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 501 Bytes

2-Hadoop.md

File metadata and controls

31 lines (25 loc) · 501 Bytes
  1. Hadoop ==========

Run Hadoop examples

  • 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?