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.