Get the App
SLTechnology News&Howtos  ›  Development  › 

Compiling hive and configuration installation steps under Linux

Shulou Source: shulou.com Published: 2022-06-03 11:38:24 11月08日 Update

This article mainly introduces "compiling hive and configuration installation steps under Linux". In daily operation, I believe that many people have doubts about compiling hive and configuration installation steps under Linux. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "compiling hive and configuration installation steps under Linux". Next, please follow the editor to study!

First, download the source code package of hive-1.1.0-cdh6.7.0.

Download address: wget http://archive.cloudera.com/cdh6/cdh/5/hive-1.1.0-cdh6.7.0-src.tar.gz

2. Maven is required to compile the source package of hive-1.1.0-cdh6.7.0, and the version I choose is maven3.3.9.

Download address: http://maven.apache.org/download.cgi

Since the default maven address is slow to download things, you can add a domestic mirror address to / conf/settings.xml under the maven home directory.

Repo1

Central

Human Readable Name for this Mirror.

Http://maven.ibiblio.org/maven2/

Repo2

Central

Human Readable Name for this Mirror.

Http://repo2.maven.org/maven2/

Third, set the environment variable of Maven in etc/profile

Export MANVE_HOME=/home/hadoop/app/apache-maven-3.3.9

Export PATH=$MANVE_HOME/bin:$PATH

4. JDK1.7+ is required for the source package of hive-1.1.0-cdh6.7.0

5. Compile the source code of Hive2.1.1 and package the instructions as follows:

Mvn clean package-DskipTests-Phadoop-2-Pdist

After compilation, a tar package will be generated in the packaging/target directory under the source directory, and the related hive module jar packages can be found in this tar package.

File name: apache-hive-1.1.0-cdh6.7.0-bin.tar.gz

6. The successful compilation is as follows:

Summary: configure the components required for compilation according to the requirements in the source code, such as MANVE, JDK, etc.

At this point, the study of "compiling hive and configuration installation steps under Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Source code configuration compilation downloading steps address learning directory more version help utility success next things variables names instructions files articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Linux Shulou Information Huawei Xiaomi