Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change 
notification.

The following page has been changed by RaghothamMurthy:
http://wiki.apache.org/hadoop/Hive/GettingStarted/EclipseSetup

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

 * $ ant eclipse-files -Dhadoop.version=<your-hadoop-version>
 * $ ant package -Dhadoop.version=<your-hadoop-version>
 * $ cd metastore
 * $ ant model-jar -Dhadoop.version=<your-hadoop-version>
 * $ cd ../ql
 * $ ant gen-test -Dhadoop.version=<your-hadoop-version>

You should see the following new files/directories in the top-level-directory.
 * .classpath
 * .settings
 * .project
 * Several .launch files

Now open up eclipse and do the following:
 * File->Import->General->Existing Projects Into Workspace->Select root 
directory (point to <top-level-directory>)

This should import the project and the launch configurations. You can look for 
launch configurations by checking:
 * Run->Run Configurations->JUnit. 

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

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

Reply via email to