Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
courses:mapreduce-tutorial:step-21 [2012/01/26 23:29] straka |
courses:mapreduce-tutorial:step-21 [2012/01/31 11:18] (current) straka |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== MapReduce Tutorial : Preparing the environment ====== | ====== MapReduce Tutorial : Preparing the environment ====== | ||
+ | |||
+ | To use the Hadoop Java API, you must be able to compile the Java sources with the Hadoop library. An easy way is to use a prepared Makefile: | ||
+ | |||
+ | - Create a directory for the Java sources. | ||
+ | - Create a '' | ||
+ | |||
+ | ===== Compiling ===== | ||
+ | |||
+ | When typing '' | ||
+ | make ClassName1.jar ClassName2.jar | ||
+ | or | ||
+ | make -f / | ||
+ | |||
+ | Command '' | ||
+ | |||
+ | ===== Exercise ===== | ||
+ | Create a directory and a '' | ||
+ | |||
+ | ===== Using VIM ===== | ||
+ | If you like using VIM, there is a special configuration available for editing Hadoop java files. Just execute | ||
+ | / | ||
+ | instead of '' | ||
+ | |||
+ | This configuration of VIM has following features: | ||
+ | * Code completion is enabled for Java files. After pressing '' | ||
+ | * VIM can run '' | ||
+ | * The windows with compilation errors is opened/ | ||
+ | * Pressing F11 / F12 goes to previous / next compilation error, if there are any. | ||
+ | * Key F8 opens a //taglist// -- small window with classes, fields and functions in the current file. | ||
+ | * Pressing '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | < | ||
+ | <table style=" | ||
+ | <tr> | ||
+ | <td style=" | ||
+ | <td style=" | ||
+ | <td style=" | ||
+ | </tr> | ||
+ | </ | ||
+ | </ |