Cloud9: Downloading and setting up

by Jimmy Lin

(Page first created: 16 Jul 2009; last updated: )

Introduction

This tutorial will cover downloading and setting up Cloud9. From here, you can either play with the code in standalone mode or on Amazon's EC2.

Step 1: Download various software packages

Download and install the following software packages:

  • Java: (if you don't know what Java is you probably shouldn't be here...)
  • Eclipse: an IDE for Java
  • Subclipse: a Subversion client plug-in for Eclipse
  • Apache Ant: a build system for Java

Step 2: Check out code from the Subversion repository

Cloud9 is distributed as a fully self-contained tarball, but follow the instructions below if you want to check out the source directly from our Subversion repository.

Start Eclipse. You'll to have tweak Subclipse options. Open Eclipse preferences (under Windows: Window > Preferences; under Mac: Eclipse > Preferences). Select option Team > SVN. Change SVN interface to "SVNKit".

Switch to repository exploring mode. To do so, select menu option: Window > Open Perspective > Other > SVN Repository Exploring.

Add repository by right clicking on left panel > New > Repository Location. The repository location you want to add is:

https://subversion.umiacs.umd.edu/umd-hadoop/core

Once you've added the repository, expand the tree. You should see "branches", "tags", and "trunk". Right click on trunk > Checkout... Follow dialog to check out repository.

Go to the Hadoop homepage and download the latest release of Hadoop (currently 0.20.1); alternatively, you may want to play with Cloudera's distribution, which is released more frequently and contains patches since the latest main trunk release. For the most part, you shouldn't notice a difference between the two.

Copy the tarball to umd-hadoop-core/hadoop/ and unpack distribution:

$ tar xvfz hadoop-0.20.1.tar.gz

In reality, you can put Hadoop where ever you want. This guide simply assumes the above location for convenience—the build configuration of the repository (for Eclipse and Ant) assumes that location, but this should be asy enough to change.

After Hadoop has been unpacked, go back to Eclipse, and switch back to the Java perspective. You should have the project umd-hadoop-core. If you're still getting errors, you might need to recompile the projects. Select menu option: Project > Clean...

That should do it!

Back to main page

Creative Commons: Attribution-Noncommercial-Share Alike 3.0 United States Valid XHTML 1.0! Valid CSS!