Setting up an Eclipse project

When you need to write new programs for Hadoop, you need a development environment for coding. There are multiple Java IDEs available, and Eclipse is the most widely used open source IDE for your development. You can download the latest version of Eclipse from http://www.eclipse.org.

In addition to Eclipse, you also need JDK 8 for compiling and running your programs. When you write your program in an IDE such as Eclipse or NetBeans, you need to create a Java or Maven project. Now, once you have downloaded Eclipse on your local machine, follow these steps:

  1. Open Eclipse and create a new Java Project:

FileNew | Java Project

See the following screenshot:

  1. Once a project is created, you will need to add Hadoop ...

Get Apache Hadoop 3 Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.