Development Environment

This page is the reference concerning our development environment.

Do not hesitate to contact me directly if you encounter problems : christian.mouchet duck epfl.ch

Tools

 

 

Eclipse Setup

  1. Download Eclipse Luna here.
  2. Install the Checkstyle plugin from here. Easiest way is to drag and drop the "Install" button from the web page directly into a running Eclipse instance. Say yes to restart Eclipse.
  3. Import the project:
    1. File > Import > Git > Project from Git
    2. Clone URL
    3. Fill in the URI field with : https://github.com/ChristianMct/bigdata-event-stream-detection.git
    4. Fill in the GitHub account information
    5. Then it is all about pressing "Next" .. (unless you want to change the location of the files)
  4. Try to compile the project using Maven:
    1. Right click on the project > Run as > Maven Build
    2. Fill in the goal field with : clean package
    3. This should have produced a JAR file in the target/ directory

troubleshooting

You can't build the project : Check that you have the JRE 1.7 installed and bound to eclipse.

You can't clone the repo: Check that you sent me your GitHub username.

 

 

Git

Organization

I pushed a template project containing a wordcount exemple so you can test your setup. To start working on your task, it should be easy to branch from this project and push the new branch on the repo following a Feature Branch Workflow as described in the next section.

Important note: In order to accomodate setup, I pushed a project specific settings file on the repo. This often leads to people pushing their own project specific settings file if they change them. Please avoid doing so by checking what is going to be commited (git status) and by avoiding making change to those settings in eclipse.

Workflow

We will use a Feature Branch Workflow. This type of workflow should suit our project well because we'll have to work on different approach of one problem, some of them having common components (ex. a parser, a data-structure for articles ...). Please have a look at the link to see how it works. They provide examples of the git commands needed. If it's too complicated, we can still use the centralized workflow but it can become messy for a big group as ours.

 

 

Coding Style

We'll use Google's coding style for Java for this project.

 

 

Misc

Avoid entering your password when using SSH/SCP/SFTP

Asking the GASPAR password is the second attempt of authentication performed by the server when it can't find your public key. Providing it your key prevent you from typing the password. This tutorial shows you how. Maybe you can skip Step 1 if you already created a key pair when installing hadoop locally.