VirtualBox上で4台も動かすと遅いので、HadoopをSolaris10のzoneで動かしてみた。
# zonecfg -z hdp01
zone> create
zone> set zonepath=/spool/zone
zone> add net
zone:net> set physical=e1000g1
zone:net> set address=192.168.1.51
zone:net> end
zone> verify
zone> commit
zone> exit
# zoneadm -z hdp01 install
# zoneadm -z hdp01 boot
# zlogin -C hdp01
後は、http://aikotobaha.blogspot.com/2010/07/hadoop-1.html
の手順でOK。
$ hadoop-0.20.2/bin/hadoop jar hadoop-0.20.2/hadoop-0.20.2-examples.jar pi 1 1000
Number of Maps = 1
Samples per Map = 1000
Wrote input for Map #0
Starting Job
10/07/23 23:46:29 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker, sessionId=
10/07/23 23:46:29 INFO mapred.FileInputFormat: Total input paths to process : 1
10/07/23 23:46:30 INFO mapred.JobClient: Running job: job_local_0001
10/07/23 23:46:30 INFO mapred.FileInputFormat: Total input paths to process : 1
10/07/23 23:46:30 INFO mapred.MapTask: numReduceTasks: 1
10/07/23 23:46:30 INFO mapred.MapTask: io.sort.mb = 100
10/07/23 23:46:30 INFO mapred.MapTask: data buffer = 79691776/99614720
10/07/23 23:46:30 INFO mapred.MapTask: record buffer = 262144/327680
10/07/23 23:46:30 INFO mapred.MapTask: Starting flush of map output
10/07/23 23:46:30 INFO mapred.MapTask: Finished spill 0
10/07/23 23:46:30 INFO mapred.TaskRunner: Task:attempt_local_0001_m_000000_0 is done. And is in the process of commiting
10/07/23 23:46:30 INFO mapred.LocalJobRunner: Generated 1000 samples.
10/07/23 23:46:30 INFO mapred.TaskRunner: Task 'attempt_local_0001_m_000000_0' done.
10/07/23 23:46:30 INFO mapred.LocalJobRunner:
10/07/23 23:46:30 INFO mapred.Merger: Merging 1 sorted segments
10/07/23 23:46:30 INFO mapred.Merger: Down to the last merge-pass, with 1 segments left of total size: 24 bytes
10/07/23 23:46:30 INFO mapred.LocalJobRunner:
10/07/23 23:46:30 INFO mapred.TaskRunner: Task:attempt_local_0001_r_000000_0 is done. And is in the process of commiting
10/07/23 23:46:30 INFO mapred.LocalJobRunner:
10/07/23 23:46:30 INFO mapred.TaskRunner: Task attempt_local_0001_r_000000_0 is allowed to commit now
10/07/23 23:46:30 INFO mapred.FileOutputCommitter: Saved output of task 'attempt_local_0001_r_000000_0' to file:/export/home/hadoop/PiEstimator_TMP_3_141592654/out
10/07/23 23:46:30 INFO mapred.LocalJobRunner: reduce > reduce
10/07/23 23:46:30 INFO mapred.TaskRunner: Task 'attempt_local_0001_r_000000_0' done.
10/07/23 23:46:31 INFO mapred.JobClient: map 100% reduce 100%
10/07/23 23:46:31 INFO mapred.JobClient: Job complete: job_local_0001
10/07/23 23:46:31 INFO mapred.JobClient: Counters: 13
10/07/23 23:46:31 INFO mapred.JobClient: FileSystemCounters
10/07/23 23:46:31 INFO mapred.JobClient: FILE_BYTES_READ=311996
10/07/23 23:46:31 INFO mapred.JobClient: FILE_BYTES_WRITTEN=341919
10/07/23 23:46:31 INFO mapred.JobClient: Map-Reduce Framework
10/07/23 23:46:31 INFO mapred.JobClient: Reduce input groups=2
10/07/23 23:46:31 INFO mapred.JobClient: Combine output records=0
10/07/23 23:46:31 INFO mapred.JobClient: Map input records=1
10/07/23 23:46:31 INFO mapred.JobClient: Reduce shuffle bytes=0
10/07/23 23:46:31 INFO mapred.JobClient: Reduce output records=0
10/07/23 23:46:31 INFO mapred.JobClient: Spilled Records=4
10/07/23 23:46:31 INFO mapred.JobClient: Map output bytes=18
10/07/23 23:46:31 INFO mapred.JobClient: Map input bytes=24
10/07/23 23:46:31 INFO mapred.JobClient: Combine input records=0
10/07/23 23:46:31 INFO mapred.JobClient: Map output records=2
10/07/23 23:46:31 INFO mapred.JobClient: Reduce input records=2
Job Finished in 1.303 seconds
Estimated value of Pi is 3.14800000000000000000
問題なく動いた。
0 件のコメント:
コメントを投稿