See: Description
The Bits of πThe table on the right are the results computed by distbbp.
|
* By representing π in decimal, hexadecimal and binary, we have
|
$ hadoop org.apache.hadoop.examples.pi.DistBbp \ <b> <nThreads> <nJobs> <type> <nPart> <remoteDir> <localDir>And the parameters are:
<b> | The number of bits to skip, i.e. compute the (b+1)th position. |
<nThreads> | The number of working threads. |
<nJobs> | The number of jobs per sum. |
<type> | 'm' for map side job, 'r' for reduce side job, 'x' for mix type. |
<nPart> | The number of parts per job. |
<remoteDir> | Remote directory for submitting jobs. |
<localDir> | Local directory for storing output files. |
$ hadoop org.apache.hadoop.examples.pi.DistBbp \ 1,000,000,000,000,056 20 1000 x 500 remote/a local/outputIt uses 20 threads to summit jobs so that there are at most 20 concurrent jobs. Each sum (there are totally 14 sums) is partitioned into 1000 jobs. The jobs will be executed in map-side or reduce-side. Each job has 500 parts. The remote directory for the jobs is remote/a and the local directory for storing output is local/output. Depends on the cluster configuration, it may take many days to finish the entire execution. If the execution is killed, we may resume it by
$ hadoop org.apache.hadoop.examples.pi.DistBbp \ 1,000,000,000,000,056 20 1000 x 500 remote/b local/output
Copyright © 2018 Apache Software Foundation. All rights reserved.