RSS

How to Compile Hadoop Applications using IntelliJ IDEA

29 Jan

The hadoop uses IntelliJ IDEA (Intelligent Java IDE) tool for building  the hadoop packages.

Steps to compile sample program in IntelliJ Idea

1) Downloading the IntelliJ IDEA tool from following link

https://www.jetbrains.com/idea/download/

2) Create hadoop application with IntelliJ IDEA

(i) Start IntelliJ IDEA.

(ii) Click Create new project

(iii) The project type is set to Java. Browse and select the Java SE  Development Kit 7 (JDK) installation folder on project SDK. Click Next.

(iv) Set the project name and project location and then click finish.

(v) In the Project Explorer, right-click the src folder. Select New –> Java Class.

3) Configuring Module Dependencies and Libraries

(i) Select File->Project Structure.

(ii) Click on Modules under “Project Settings.”

(iii) Select the Dependencies tab then click on the + at the right of the  screen. Select JARS or directories.

4) Run the project

(i) Select Run->Edit Configurations

(ii) Click on Application under “Run/Debug Configurations”

(iii) Select the Configuration tab then give the class name in “Main class” and set the input and output directory in “Program arguments” tags.

5) Compile the Hadoop Application

(i) Select Run-> Run

(ii) The outputs are generated in output directory with a file called _SUCCESS and part-r-00000.

 

For Further Details:

S-Logix

No.5, First Floor, 4th Street,

Dr. Subbarayan Nagar,

Kodambakkam,

Chennai-600 024.

Landmark : (Samiyar Madam)

Mobile: +91-81240 01111, 97109 99001

E-Mail: slogix.india@gmail.com / yahoo.in

 

 

 

 

Advertisements
 
Leave a comment

Posted by on January 29, 2016 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s