Build the Eclipse HBase Development Environment on UbuntuLinux in the Virtual Machine

Source: Internet
Author: User
Requirements: Hadoop/HBase clusters run in remote data centers; development environments are built in the Ubuntu system of local virtual machines. virtual machines, such as VMware, virtualPCor ...., build ubuntulinux2. download EclipseJEEVersion. Helios is a good consideration. We strongly recommend you use JEEversion here. After actual development, you will find it easier; 3.

Requirements: Hadoop/HBase clusters run in remote data centers; development environments are built in the Ubuntu system of local virtual machines
1. Create ubuntu linux in a virtual machine, such as VMware, virtual PC or...
2. Download Eclipse JEE Version. Helios is a good consideration. It is strongly recommended to use JEE version here. After actual development, you will find it easier;
3. Hadoop Development Environment Configuration
4. HBase environment Configuration

4.1 create a project

4.2 change the followingHbase, hadoop, log4j, commons-logging, commons-lang, and ZooKeeper jarsPackage into classpath. Generally, a new lib file is created in the project, which is at the same level as the src file. Copy the above file and add the Java Build Path.

For example:

Hadoop-0.20.205-core.jar

Log4j-1.2.16.jar

Commons-logging-1.1.1.jar

Hbase-0.90.4.jar

Hbase-0.90.4-tests.jar

Zookeeper-3.2.2.jar

Commons-lang-2.5.jar

4.3 create a new conf file in the project at the same level as the src file to store the content of the conf folder of hbase, and then add the Java Build Path through add class folder.

Of course, another option is to put lib of 4.2 and conf of 4.3 into the reference library at the same time, and then add the reference library to the build path, so that the overall looks clean and tidy. The method is to first create a user library in preference, and then import it through project-> properties-java build path-> libraries-> add library;

See the figure below:

The first figure repeats two methods to illustrate the problem, which are differentiated based on the width of the box;
The second figure is from a comrade-in-arms article. The Buddy put all the conf files in the library. It's up to you to comment.

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.