Debug HBase Service Source in Linux+eclipse+maven environment, start hmaster

Source: Internet
Author: User

Due to the work of the thesis, I would like to Regionserver Ipcserver and Hregionserver and other classes to modify the source of work.

So I need in my virtual machine, my virtual machine environment is 32-bit CentOS install Eclipse, debug HBase source code.

The main steps of setting up the environment are basically according to Http://www.cnblogs.com/shitouer/archive/2012/10/24/2736923.html. I mainly record the problems I encountered in setting up my own environment.

My basic Steps,

1,eclipse Follow the SVN plugin,

2. Pull the HBase source folder in the tag via SVN

3, download maven, here my JDK is 1.6, MAVEN version 3.31 is not supported.

4, configure the project in Eclipse Covert as a maven project.

I have also tried to use the command MVN eclipse:eclipse in the project directory, and MVN clean install-dskiptest and so on, but often there is a case of lead-in clutter in the project.

I have been entangled in the problem of this primer. Project packages and BuildPath are basically messy. This time the startup project is basically reported to main class can not found.

In fact, as long as you pull the hbase source and conversion maven project is automatically pulled is right, if not to go to the project directory input commands, other blog can be checked.

Under what circumstances to ensure that the configuration is correct, you can start hmaster? All BuildPath folders on the diagram must be guaranteed, and the name directory must be identical.

After the configuration file I feel can actually not set hbase.site, under Src/main/resources There is a hbase-default.xml file, which has version and other settings, debugging is most of the configuration items are read from this folder.

My main problem is that the MVN command configuration, the project organization structure changes, basically SRC directly as a class directory, or other, anyway, the entire package name is messy. According to the picture of the project organization, and then according to the other blog said that the settings start the word should be no problem.

The better connection found during the construction process

Http://wiki.apache.org/hadoop/Hbase/EclipseEnvironment

Http://wenku.baidu.com/link?url=Vuo0WkzSt6Q06P8t1umTjiiLDwsiNUbVLuTOsYVc32ynoAiBlGM_ 5byvmfyas2fr4wk-5wjyepdvhhihv4irfuseo2ry4mshhmuzssqzciw

Debug HBase Service Source in Linux+eclipse+maven environment, start hmaster

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.