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.