Get the prerequisites and sources as described in Compiling Drill from source.
Get eclipse Kepler IDE for Java Developers with plugins, EGit - Git Team Provider and Maven Integration for Eclipse.
In general, the easiest way to setup the projects is to first clone the sources via git command line, and then File|Import... as "Existing Maven Project" by pointing to the pom.xml in the project root folder.
This link can also be useful working with EGit Perspective in eclipse. http://wiki.eclipse.org/EGit/User_Guide#Cloning_Remote_Repositories.
Clone the souces to your local. Setup common, ref and sqlparser java projects.
Right click on each of the projects, select 'Run As -> Maven install'. Please file DRILL-JIRA, if you run into any issues.
Executing the ReferenceInterpreter from ref project:
Copy "ref\src\ test\resources\donuts.json" to "ref\src\ main\resources\donuts.json".
Right click on "ReferenceInterpreter", select 'Run As -> Run Configurations'.
Select Java Application and New.
In Main tab:
Main class: org.apache.drill.exec.ref.ReferenceInterpreter
In Arguments tab:
Program arguments: "src/test/resources/simple_plan.json" (with quotes).
Next time onwards:
Right click on "ReferenceInterpreter", select 'Run As -> Java Application'.
If you are using eclipse, add this template. In java editor, type 'logger<ctrl+space>' would auto generate the code.
context:java type members
Click 'OK' and 'OK'.
Refer to DRILL-36 for details about what logger drill uses and why.
Continuous Integration with Jenkins at, https://builds.apache.org/job/Drill-Physical-Plan/