title: Hadoop running sort example on single-node cluster
body: <p>I am trying to run sort example on Hadoop single-node cluster. First of all, I start the deamons:</p>
  
  <p><code>hadoop@ubuntu:/home/user/hadoop$ bin/start-all.sh</code></p>
  
  <p>Then I run the random writer example to generate the sequential files as input files.</p>
  
  <p><code>hadoop@ubuntu:/home/user/hadoop$ bin/hadoop jar hadoop-*-examples.jar randomwriter rand</code></p>
  
  <p>hadoop@ubuntu:/home/user/hadoop$ bin/hadoop jar hadoop-*-examples.jar    randomwriter rand  </p>
  
  <p>Running 0 maps.  </p>
  
  <pre><code>Job started: Thu Mar 31 18:21:51 EEST 2011 
  11/03/31 18:21:52 INFO mapred.JobClient: Running job: job_201103311816_0001 
  11/03/31 18:21:53 INFO mapred.JobClient:  map 0% reduce 0% 
  11/03/31 18:22:01 INFO mapred.JobClient: Job complete: job_201103311816_0001 
  11/03/31 18:22:01 INFO mapred.JobClient: Counters: 0 
  Job ended: Thu Mar 31 18:22:01 EEST 2011 
  </code></pre>
  
  <p>The job took 9 seconds.</p>
  
  <p><code>hadoop@ubuntu:/home/user/hadoop$ bin/hadoop jar hadoop-*-examples.jar sort rand rand-sort</code></p>
  
  <p>Running on 1 nodes to sort from <code>hdfs://localhost:54310/user/hadoop/rand</code>into </p>
  
  <p><code>hdfs://localhost:54310/user/hadoop/rand-sort</code> with 1 reduces. </p>
  
  <pre><code>Job started: Thu Mar 31 18:25:19 EEST 2011 
  11/03/31 18:25:20 INFO mapred.FileInputFormat: Total input paths to process : 0 
  11/03/31 18:25:20 INFO mapred.JobClient: Running job: job_201103311816_0002 
  11/03/31 18:25:21 INFO mapred.JobClient:  map 0% reduce 0% 
  11/03/31 18:25:32 INFO mapred.JobClient:  map 0% reduce 100% 
  11/03/31 18:25:34 INFO mapred.JobClient: Job complete: job_201103311816_0002 
  11/03/31 18:25:34 INFO mapred.JobClient: Counters: 9 
  11/03/31 18:25:34 INFO mapred.JobClient:   Job Counters 
  11/03/31 18:25:34 INFO mapred.JobClient:     Launched reduce tasks=1 
  11/03/31 18:25:34 INFO mapred.JobClient:   FileSystemCounters 
  11/03/31 18:25:34 INFO mapred.JobClient:     HDFS_BYTES_WRITTEN=96 
  11/03/31 18:25:34 INFO mapred.JobClient:   Map-Reduce Framework 
  11/03/31 18:25:34 INFO mapred.JobClient:     Reduce input groups=0 
  11/03/31 18:25:34 INFO mapred.JobClient:     Combine output records=0 
  11/03/31 18:25:34 INFO mapred.JobClient:     Reduce shuffle bytes=0 
  11/03/31 18:25:34 INFO mapred.JobClient:     Reduce output records=0 
  11/03/31 18:25:34 INFO mapred.JobClient:     Spilled Records=0 
  11/03/31 18:25:34 INFO mapred.JobClient:     Combine input records=0 
  11/03/31 18:25:34 INFO mapred.JobClient:     Reduce input records=0 
  Job ended: Thu Mar 31 18:25:34 EEST 2011 
  </code></pre>
  
  <p>The job took 14 seconds. </p>
  
  <p><code>hadoop@ubuntu:/home/user/hadoop$ bin/hadoop dfs -cat rand-sort/part-00000</code> </p>
  
  <p>SEQ#"org.apache.hadoop.io.BytesWritable"org.apache.hadoop.io.BytesWritablej"��mY�&amp;�٩�#</p>
  
  <p>I'm new to Hadoop. Is everything I am doing correct, or am I doing something wrong? And my question is, how can I see that the generated data from the randomwritewr and the results from the sort example are correct? From where can I see them?</p>