Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.
The "GettingStarted" page has been changed by thomasjungblut: http://wiki.apache.org/hama/GettingStarted?action=diff&rev1=63&rev2=64 By default, it’s available at http://localhost:40013 + == Setup Hama in your Eclipse Workspace == + + Step by step guide to let Hama run in your eclipse workspace with a localrunner: + + *First you need a simple Java Project. + *Click on File in the top left corner -> New -> Java Project. + *Give the child a good name, choose at least Java6 and finish. You should see the project in your Package Explorer. + *Add the jars you need for Hama 0.5.0 to your build path, you should get them from a binary release (sometimes called *-dist) lib directory of Apache Hama. + *commons-httpclient-3.0.1.jar ; commons-logging-1.0.4.jar ; hadoop-1.0.0.jar ; hama-core.0.5.0-incubating.jar ; hama-graph.0.5.0-incubating.jar ; hama-examples.0.5.0-incubating.jar ; zookeeper-3.3.2.jar. + *Create a new class to test it and put the following code into it {{{ + public static void main(String[] args) throws IOException, + InterruptedException, ClassNotFoundException { + PiEstimator.main(args); + } + }}} + *Right-click on the source and choose Run As->Java Application + *Gratulation! You should see the following output {{{ + 12/04/22 11:02:34 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable + 12/04/22 11:02:34 WARN bsp.BSPJobClient: No job jar file set. User classes may not be found. See BSPJob#setJar(String) or check Your jar file. + 12/04/22 11:02:34 INFO bsp.BSPJobClient: Running job: job_localrunner_0001 + 12/04/22 11:02:37 INFO bsp.LocalBSPRunner: Setting up a new barrier for 20 tasks! + 12/04/22 11:02:37 INFO bsp.BSPJobClient: Current supersteps number: 0 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: The total number of supersteps: 0 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: Counters: 7 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: org.apache.hama.bsp.JobInProgress$JobCounter + 12/04/22 11:02:37 INFO bsp.BSPJobClient: LAUNCHED_TASKS=20 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: org.apache.hama.bsp.BSPPeerImpl$PeerCounter + 12/04/22 11:02:37 INFO bsp.BSPJobClient: SUPERSTEPS=0 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: SUPERSTEP_SUM=20 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: TIME_IN_SYNC_MS=178 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: TOTAL_MESSAGES_SENT=40 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: TOTAL_MESSAGES_RECEIVED=20 + 12/04/22 11:02:37 INFO bsp.BSPJobClient: TASK_OUTPUT_RECORDS=1 + Estimated value of PI is 3.14764 + Job Finished in 3.248 seconds + + }}} +