Build a hive eclipse development environment in Windows

Source: Internet
Author: User

1) install JDK

2) install ant

2.1) download the latest ant version

2.2) Create ant and decompress it to the installation directory

2.3) modify the environment variable, add the variable atn_home, modify the path, and add: % ant_home %/bin.

3) test whether ant is successfully installed in cmd:

Run the ant command in cmd. If the installation is successful, the output is:

 
Buildfile: Build. XML does not exist! Build failed

4) download hive from SVNSource code:

SVN checkout http:// Svn.apache.org/repos/asf/hive/trunk hive-trunk

5) run the command in cmd: ant clean package eclipse-Files

 
C: \ Users \ ADMIN> CD \ c: \> Cd/D: \> Cd D: \ mywork \ hive D: \ mywork \ hive> ant clean package eclipse-Files

6) run the following command in Eclipse:

 
File-> Import-> General-> existing projects into Workspace-> select root directory (point to <top-level-directory>)
Project-> properties-> Java compiler-> (check) Enable project specific settings-> (change to 1.6) compiler compliance level

7) Find the hivecli. Launch file in eclipse and run the file. If the file is configured successfully, the hive CLI interface will appear.

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.