hadoop@namenode:~$ hadoop fs -mkdir ./testdata Warning: $HADOOP_HOME is deprecated. hadoop@namenode:~$ hadoop fs -ls Warning: $HADOOP_HOME is deprecated. Found 4 items drwxr-xr-x - hadoop supergroup 0 2014-11-06 07:48 /user/hadoop/input drwxr-xr-x - hadoop supergroup 0 2014-11-06 07:49 /user/hadoop/output drwxr-xr-x - Administrator supergroup 0 2014-11-06 08:01 /user/hadoop/output1 drwxr-xr-x - hadoop supergroup 0 2014-11-08 06:41 /user/hadoop/testdata hadoop@namenode:~$ hadoop fs -put synthetic_control.data ./testdata Warning: $HADOOP_HOME is deprecated. hadoop@namenode:~$ hadoop fs -ls Warning: $HADOOP_HOME is deprecated. Found 4 items drwxr-xr-x - hadoop supergroup 0 2014-11-06 07:48 /user/hadoop/input drwxr-xr-x - hadoop supergroup 0 2014-11-06 07:49 /user/hadoop/output drwxr-xr-x - Administrator supergroup 0 2014-11-06 08:01 /user/hadoop/output1 drwxr-xr-x - hadoop supergroup 0 2014-11-08 06:42 /user/hadoop/testdata hadoop@namenode:~$ hadoop fs -ls ./testdata Warning: $HADOOP_HOME is deprecated. Found 1 items -rw-r--r-- 1 hadoop supergroup 288374 2014-11-08 06:42 /user/hadoop/testdata/synthetic_control.data
hadoop@namenode:~$ mahout org.apache.mahout.clustering.syntheticcontrol.kmeans.Job MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath. Warning: $HADOOP_HOME is deprecated. Running on hadoop, using /home/hadoop/hadoop-1.2.1/bin/hadoop and HADOOP_CONF_DIR=/home/hadoop/hadoop-1.2.1/conf MAHOUT-JOB: /home/hadoop/mahout-distribution-0.9/mahout-examples-0.9-job.jar Warning: $HADOOP_HOME is deprecated. 14/11/08 06:47:25 WARN driver.MahoutDriver: No org.apache.mahout.clustering.syntheticcontrol.kmeans.Job.props found on classpath, will use command-line arguments only 14/11/08 06:47:25 INFO kmeans.Job: Running with default arguments 14/11/08 06:47:27 INFO kmeans.Job: Preparing Input 14/11/08 06:47:27 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. 14/11/08 06:47:30 INFO input.FileInputFormat: Total input paths to process : 1 14/11/08 06:47:30 INFO util.NativeCodeLoader: Loaded the native-hadoop library 14/11/08 06:47:30 WARN snappy.LoadSnappy: Snappy native library not loaded 14/11/08 06:47:31 INFO mapred.JobClient: Running job: job_201411080632_0002 14/11/08 06:47:32 INFO mapred.JobClient: map 0% reduce 0% 14/11/08 06:48:18 INFO mapred.JobClient: map 100% reduce 0% 14/11/08 06:48:21 INFO mapred.JobClient: Job complete: job_201411080632_0002 14/11/08 06:48:21 INFO mapred.JobClient: Counters: 19 14/11/08 06:48:21 INFO mapred.JobClient: Job Counters 14/11/08 06:48:21 INFO mapred.JobClient: SLOTS_MILLIS_MAPS=19688 14/11/08 06:48:21 INFO mapred.JobClient: Total time spent by all reduces waiting after reserving slots (ms)=0 14/11/08 06:48:21 INFO mapred.JobClient: Total time spent by all maps waiting after reserving slots (ms)=0 14/11/08 06:48:21 INFO mapred.JobClient: Rack-local map tasks=1 14/11/08 06:48:21 INFO mapred.JobClient: Launched map tasks=1 14/11/08 06:48:21 INFO mapred.JobClient: SLOTS_MILLIS_REDUCES=0 14/11/08 06:48:21 INFO mapred.JobClient: File Output Format Counters 14/11/08 06:48:21 INFO mapred.JobClient: Bytes Written=335470 14/11/08 06:48:21 INFO mapred.JobClient: FileSystemCounters 14/11/08 06:48:21 INFO mapred.JobClient: HDFS_BYTES_READ=288503 14/11/08 06:48:21 INFO mapred.JobClient: FILE_BYTES_WRITTEN=58838 14/11/08 06:48:21 INFO mapred.JobClient: HDFS_BYTES_WRITTEN=335470 14/11/08 06:48:21 INFO mapred.JobClient: File Input Format Counters 14/11/08 06:48:21 INFO mapred.JobClient: Bytes Read=288374 14/11/08 06:48:21 INFO mapred.JobClient: Map-Reduce Framework 14/11/08 06:48:21 INFO mapred.JobClient: Map input records=600 14/11/08 06:48:21 INFO mapred.JobClient: Physical memory (bytes) snapshot=38473728 14/11/08 06:48:21 INFO mapred.JobClient: Spilled Records=0 14/11/08 06:48:21 INFO mapred.JobClient: CPU time spent (ms)=910 14/11/08 06:48:21 INFO mapred.JobClient: Total committed heap usage (bytes)=16252928 14/11/08 06:48:21 INFO mapred.JobClient: Virtual memory (bytes) snapshot=347992064 14/11/08 06:48:21 INFO mapred.JobClient: Map output records=600 14/11/08 06:48:21 INFO mapred.JobClient: SPLIT_RAW_BYTES=129 14/11/08 06:48:21 INFO kmeans.Job: Running random seed to get initial clusters 14/11/08 06:48:21 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library 14/11/08 06:48:21 INFO compress.CodecPool: Got brand-new compressor 14/11/08 06:48:22 INFO kmeans.RandomSeedGenerator: Wrote 6 Klusters to output/random-seeds/part-randomSeed 14/11/08 06:48:22 INFO kmeans.Job: Running KMeans with k = 6 14/11/08 06:48:22 INFO kmeans.KMeansDriver: Input: output/data Clusters In: output/random-seeds/part-randomSeed Out: output 14/11/08 06:48:22 INFO kmeans.KMeansDriver: convergence: 0.5 max Iterations: 10 14/11/08 06:48:22 INFO compress.CodecPool: Got brand-new decompressor 14/11/08 06:48:23 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. 14/11/08 06:48:24 INFO input.FileInputFormat: Total input paths to process : 1 14/11/08 06:48:25 INFO mapred.JobClient: Running job: job_201411080632_0003 14/11/08 06:48:26 INFO mapred.JobClient: map 0% reduce 0% 14/11/08 06:48:56 INFO mapred.JobClient: map 100% reduce 0% 14/11/08 06:49:09 INFO mapred.JobClient: map 100% reduce 100% 14/11/08 06:49:12 INFO mapred.JobClient: Job complete: job_201411080632_0003 14/11/08 06:49:12 INFO mapred.JobClient: Counters: 29 14/11/08 06:49:12 INFO mapred.JobClient: Job Counters 14/11/08 06:49:12 INFO mapred.JobClient: Launched reduce tasks=1 14/11/08 06:49:12 INFO mapred.JobClient: SLOTS_MILLIS_MAPS=21258 14/11/08 06:49:12 INFO mapred.JobClient: Total time spent by all reduces waiting after reserving slots (ms)=0 14/11/08 06:49:12 INFO mapred.JobClient: Total time spent by all maps waiting after reserving slots (ms)=0 14/11/08 06:49:12 INFO mapred.JobClient: Launched map tasks=1 14/11/08 06:49:12 INFO mapred.JobClient: Data-local map tasks=1 14/11/08 06:49:12 INFO mapred.JobClient: SLOTS_MILLIS_REDUCES=12821 14/11/08 06:49:12 INFO mapred.JobClient: File Output Format Counters 14/11/08 06:49:12 INFO mapred.JobClient: Bytes Written=7581 14/11/08 06:49:12 INFO mapred.JobClient: FileSystemCounters 14/11/08 06:49:12 INFO mapred.JobClient: FILE_BYTES_READ=10650 14/11/08 06:49:12 INFO mapred.JobClient: HDFS_BYTES_READ=358672 14/11/08 06:49:12 INFO mapred.JobClient: FILE_BYTES_WRITTEN=141341 14/11/08 06:49:12 INFO mapred.JobClient: HDFS_BYTES_WRITTEN=7581 14/11/08 06:49:12 INFO mapred.JobClient: File Input Format Counters 14/11/08 06:49:12 INFO mapred.JobClient: Bytes Read=335470 14/11/08 06:49:12 INFO mapred.JobClient: Map-Reduce Framework 14/11/08 06:49:12 INFO mapred.JobClient: Map output materialized bytes=10650 14/11/08 06:49:12 INFO mapred.JobClient: Map input records=600 14/11/08 06:49:12 INFO mapred.JobClient: Reduce shuffle bytes=10650 14/11/08 06:49:12 INFO mapred.JobClient: Spilled Records=12 14/11/08 06:49:12 INFO mapred.JobClient: Map output bytes=10620 14/11/08 06:49:12 INFO mapred.JobClient: Total committed heap usage (bytes)=132190208 14/11/08 06:49:12 INFO mapred.JobClient: CPU time spent (ms)=7490 14/11/08 06:49:12 INFO mapred.JobClient: Combine input records=0 14/11/08 06:49:12 INFO mapred.JobClient: SPLIT_RAW_BYTES=122 14/11/08 06:49:12 INFO mapred.JobClient: Reduce input records=6 14/11/08 06:49:12 INFO mapred.JobClient: Reduce input groups=6 14/11/08 06:49:12 INFO mapred.JobClient: Combine output records=0 14/11/08 06:49:12 INFO mapred.JobClient: Physical memory (bytes) snapshot=183877632 14/11/08 06:49:12 INFO mapred.JobClient: Reduce output records=6 14/11/08 06:49:12 INFO mapred.JobClient: Virtual memory (bytes) snapshot=696659968 14/11/08 06:49:12 INFO mapred.JobClient: Map output records=6 14/11/08 06:49:12 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. 14/11/08 06:49:14 INFO input.FileInputFormat: Total input paths to process : 1 14/11/08 06:49:15 INFO mapred.JobClient: Running job: job_201411080632_0004 14/11/08 06:49:16 INFO mapred.JobClient: map 0% reduce 0% 14/11/08 06:50:02 INFO mapred.JobClient: map 100% reduce 0% 14/11/08 06:50:15 INFO mapred.JobClient: map 100% reduce 100% 14/11/08 06:50:19 INFO mapred.JobClient: Job complete: job_201411080632_0004 14/11/08 06:50:19 INFO mapred.JobClient: Counters: 29 14/11/08 06:50:19 INFO mapred.JobClient: Job Counters 14/11/08 06:50:19 INFO mapred.JobClient: Launched reduce tasks=1 14/11/08 06:50:19 INFO mapred.JobClient: SLOTS_MILLIS_MAPS=25946 14/11/08 06:50:19 INFO mapred.JobClient: Total time spent by all reduces waiting after reserving slots (ms)=0 14/11/08 06:50:19 INFO mapred.JobClient: Total time spent by all maps waiting after reserving slots (ms)=0 14/11/08 06:50:19 INFO mapred.JobClient: Rack-local map tasks=1 14/11/08 06:50:19 INFO mapred.JobClient: Launched map tasks=1 14/11/08 06:50:19 INFO mapred.JobClient: SLOTS_MILLIS_REDUCES=12738 14/11/08 06:50:19 INFO mapred.JobClient: File Output Format Counters 14/11/08 06:50:19 INFO mapred.JobClient: Bytes Written=7581 14/11/08 06:50:19 INFO mapred.JobClient: FileSystemCounters 14/11/08 06:50:19 INFO mapred.JobClient: FILE_BYTES_READ=13890 14/11/08 06:50:19 INFO mapred.JobClient: HDFS_BYTES_READ=351142 14/11/08 06:50:19 INFO mapred.JobClient: FILE_BYTES_WRITTEN=147821 14/11/08 06:50:19 INFO mapred.JobClient: HDFS_BYTES_WRITTEN=7581 14/11/08 06:50:19 INFO mapred.JobClient: File Input Format Counters 14/11/08 06:50:19 INFO mapred.JobClient: Bytes Read=335470 14/11/08 06:50:19 INFO mapred.JobClient: Map-Reduce Framework 14/11/08 06:50:19 INFO mapred.JobClient: Map output materialized bytes=13890 14/11/08 06:50:19 INFO mapred.JobClient: Map input records=600 14/11/08 06:50:19 INFO mapred.JobClient: Reduce shuffle bytes=13890 14/11/08 06:50:19 INFO mapred.JobClient: Spilled Records=12 14/11/08 06:50:19 INFO mapred.JobClient: Map output bytes=13860 14/11/08 06:50:19 INFO mapred.JobClient: Total committed heap usage (bytes)=132190208 14/11/08 06:50:19 INFO mapred.JobClient: CPU time spent (ms)=6550 14/11/08 06:50:19 INFO mapred.JobClient: Combine input records=0 14/11/08 06:50:19 INFO mapred.JobClient: SPLIT_RAW_BYTES=122 14/11/08 06:50:19 INFO mapred.JobClient: Reduce input records=6 14/11/08 06:50:19 INFO mapred.JobClient: Reduce input groups=6 14/11/08 06:50:19 INFO mapred.JobClient: Combine output records=0 14/11/08 06:50:19 INFO mapred.JobClient: Physical memory (bytes) snapshot=183332864 14/11/08 06:50:19 INFO mapred.JobClient: Reduce output records=6 14/11/08 06:50:19 INFO mapred.JobClient: Virtual memory (bytes) snapshot=695611392 14/11/08 06:50:19 INFO mapred.JobClient: Map output records=6 14/11/08 06:50:19 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. 14/11/08 06:50:20 INFO input.FileInputFormat: Total input paths to process : 1 14/11/08 06:50:21 INFO mapred.JobClient: Running job: job_201411080632_0005 14/11/08 06:50:22 INFO mapred.JobClient: map 0% reduce 0% 14/11/08 06:50:48 INFO mapred.JobClient: map 100% reduce 0% 14/11/08 06:50:59 INFO mapred.JobClient: map 100% reduce 33% 14/11/08 06:51:01 INFO mapred.JobClient: map 100% reduce 100% 14/11/08 06:51:05 INFO mapred.JobClient: Job complete: job_201411080632_0005 14/11/08 06:51:05 INFO mapred.JobClient: Counters: 29 14/11/08 06:51:05 INFO mapred.JobClient: Job Counters 14/11/08 06:51:05 INFO mapred.JobClient: Launched reduce tasks=1 14/11/08 06:51:05 INFO mapred.JobClient: SLOTS_MILLIS_MAPS=17047 14/11/08 06:51:05 INFO mapred.JobClient: Total time spent by all reduces waiting after reserving slots (ms)=0 14/11/08 06:51:05 INFO mapred.JobClient: Total time spent by all maps waiting after reserving slots (ms)=0 14/11/08 06:51:05 INFO mapred.JobClient: Rack-local map tasks=1 14/11/08 06:51:05 INFO mapred.JobClient: Launched map tasks=1 14/11/08 06:51:05 INFO mapred.JobClient: SLOTS_MILLIS_REDUCES=12804 14/11/08 06:51:05 INFO mapred.JobClient: File Output Format Counters 14/11/08 06:51:05 INFO mapred.JobClient: Bytes Written=7581 14/11/08 06:51:05 INFO mapred.JobClient: FileSystemCounters 14/11/08 06:51:05 INFO mapred.JobClient: FILE_BYTES_READ=13890 14/11/08 06:51:05 INFO mapred.JobClient: HDFS_BYTES_READ=351142 14/11/08 06:51:05 INFO mapred.JobClient: FILE_BYTES_WRITTEN=147821 14/11/08 06:51:05 INFO mapred.JobClient: HDFS_BYTES_WRITTEN=7581 14/11/08 06:51:05 INFO mapred.JobClient: File Input Format Counters 14/11/08 06:51:05 INFO mapred.JobClient: Bytes Read=335470 14/11/08 06:51:05 INFO mapred.JobClient: Map-Reduce Framework 14/11/08 06:51:05 INFO mapred.JobClient: Map output materialized bytes=13890 14/11/08 06:51:05 INFO mapred.JobClient: Map input records=600 14/11/08 06:51:05 INFO mapred.JobClient: Reduce shuffle bytes=13890 14/11/08 06:51:05 INFO mapred.JobClient: Spilled Records=12 14/11/08 06:51:05 INFO mapred.JobClient: Map output bytes=13860 14/11/08 06:51:05 INFO mapred.JobClient: Total committed heap usage (bytes)=132190208 14/11/08 06:51:05 INFO mapred.JobClient: CPU time spent (ms)=3280 14/11/08 06:51:05 INFO mapred.JobClient: Combine input records=0 14/11/08 06:51:05 INFO mapred.JobClient: SPLIT_RAW_BYTES=122 14/11/08 06:51:05 INFO mapred.JobClient: Reduce input records=6 14/11/08 06:51:05 INFO mapred.JobClient: Reduce input groups=6 14/11/08 06:51:05 INFO mapred.JobClient: Combine output records=0 14/11/08 06:51:05 INFO mapred.JobClient: Physical memory (bytes) snapshot=183197696 14/11/08 06:51:05 INFO mapred.JobClient: Reduce output records=6 14/11/08 06:51:05 INFO mapred.JobClient: Virtual memory (bytes) snapshot=695611392 14/11/08 06:51:05 INFO mapred.JobClient: Map output records=6
原文地址:http://blog.csdn.net/u010414066/article/details/40683033