Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The "Hbase/EclipseEnvironment" page has been changed by JeffHammerbacher. http://wiki.apache.org/hadoop/Hbase/EclipseEnvironment?action=diff&rev1=13&rev2=14 -------------------------------------------------- === Configuring Eclipse to build HBase === + As indicated in the [[Maven guide to using Eclipse|http://maven.apache.org/guides/mini/guide-ide-eclipse.html]], you should navigate to the "Hbasewrk" directory in your workspace and run "mvn eclipse:eclipse" to generate the .project file to use with HBase. You'll have to manually set the M2_REPO classpath variable by switching back to Eclipse, right-clicking on the project, selecting "Preferences", navigating to "Java > Build Path > Classpath Variables", clicking "Add Folder", and then selecting your local Maven repository (usually ~/.m2/repository"). - Right-click on HBase project and select Properties -> Java Build Path - * Remove everything from the Source tab, use "Add Folder" and add: - {{{ - src/java - src/test - }}} - * In Libraries tab use "Add JARs" and add all jars under lib and lib/jetty-ext - Then select Project->Properties->Builders - - Add a new Ant builder. Select the top level build.xml as the build file. - - === Ant build fails, cannot run "sh" === - - If you don't have "sh" you will need to install it. - - For example on Ubuntu Linux: - - $ sudo apt-get install ssh - - On Windows, start the cygwin installer and select the packages: - - * openssh - the Net category - - Hopefully HBase should now build successfully in Eclipse without any errors. -
