Difference between revisions of "CSC352 Notes 2013"

From dftwiki3
Jump to: navigation, search
(Notes on doing example in Yahoo Tutorial, Module 2)
(Setting up Eclipse for Hadoop)
Line 5: Line 5:
 
* download Eclipse 3.3.2 (Europa) from http://www.eclipse.org/downloads/packages/release/europa/winter
 
* download Eclipse 3.3.2 (Europa) from http://www.eclipse.org/downloads/packages/release/europa/winter
 
* Use Hadoop 0.19.1
 
* Use Hadoop 0.19.1
 +
* open eclipse and deploy (Mac)
 +
* uncompress hadoop 19.1
 +
* copy the eclipse-plugin from hadoop to the plugin directory of eclipse
 +
* start hadoop on the Mac and follow directions from http://v-lad.org/Tutorials/Hadoop page:
 +
** open the cluster: http://v-lad.org/Tutorials/Hadoop/14%20-%20start%20up%20the%20cluster.html
 +
 +
  start-all.sh
 +
 +
* setup eclipse
 +
:  http://v-lad.org/Tutorials/Hadoop/17%20-%20set%20up%20hadoop%20location%20in%20the%20eclipse.html
  
 
=Notes on doing example in Yahoo Tutorial, Module 2=
 
=Notes on doing example in Yahoo Tutorial, Module 2=

Revision as of 18:41, 15 December 2009

Setting up Eclipse for Hadoop

 start-all.sh
  • setup eclipse
http://v-lad.org/Tutorials/Hadoop/17%20-%20set%20up%20hadoop%20location%20in%20the%20eclipse.html

Notes on doing example in Yahoo Tutorial, Module 2

http://developer.yahoo.com/hadoop/tutorial/module2.html

   cd ../hadoop/examples/
   cat > HDFSHelloWorld.java
   mkdir hello_classes
   javac -classpath /Users/thiebaut/hadoop/hadoop-0.19.2-core.jar -d hello_classes HDFSHelloWorld.java 
   emacs HDFSHelloWorld.java -nw
   javac -classpath /Users/thiebaut/hadoop/hadoop-0.19.2-core.jar -d hello_classes HDFSHelloWorld.java 
   ls
   ls hello_classes/
   jar -cvf helloworld.jar -C hello_classes/ .
   ls
   ls -ltr
   find . -name "*" -print
   hadoop jar helloworld.jar HDFSHelloWorld

   Hello, world!