The following ant package should be installed with ant in order for the following commands to work:

After checking out the source code run the following from the top-level directory:

Remember to use the complete release number for the hadoop.version values above (i.e., 0.19.0, 0.18.2, ...). For example: $ ant eclipse-files -Dhadoop.version=0.17.0

After running these commands, you should see the following new files/directories in the top-level-directory.

Now open up eclipse and do the following:

For hadoop-0.17 you can use the java builder and run automatic builds. Do the following to disable the ant builder:

Make sure that Eclipse Java Compiler is in 1.6 compatibility mode:

This should import the project and the launch configurations. You can look for launch configurations by checking:

There should be several configurations including TestCliDriver, TestJdbc, and TestHive.

Then, you should be able to run all the unit tests by Run->Run.

Hive/GettingStarted/EclipseSetup (last edited 2010-01-06 22:26:19 by AshishThusoo)