Hive部署安装:
前置条件:
Requirements
Java 1.7
Note: Hive versions 1.2 onward require Java 1.7 or newer. Hive versions 0.14 to 1.1 work with Java 1.6 as well. Users are strongly advised to start moving to Java 1.8 (see HIVE-8607).
Hadoop 2.x (preferred), 1.x (not supported by Hive 2.0.0 onward).
Hive versions up to 0.13 also supported Hadoop 0.20.x, 0.23.x.
Hive is commonly used in production Linux and Windows environment. Mac is a commonly used development environment. The instructions in this document are applicable to Linux and Mac. Using it on Windows would require slightly different steps.
这里用的hive版本是:hive-1.1.0-cdh5.7.0
hadoop版本下载:wget http://archive.cloudera.com/cdh5/cdh/5/hadoop-2.6.0-cdh5.7.0.tar.gz
hive版本下载: wget http://archive.cloudera.com/cdh5/cdh/5/hive-1.1.0-cdh5.7.0.tar.gz
下载
[hadoop@10-9-15-140 soft]$ wget http://archive.cloudera.com/cdh5/cdh/5/hive-1.1.0-cdh5.7.0.tar.gz
--2019-07-24 00:39:48-- http://archive.cloudera.com/cdh5/cdh/5/hive-1.1.0-cdh5.7.0.tar.gz
Resolving archive.cloudera.com... 151.101.108.167
Connecting to archive.cloudera.com|151.101.108.167|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 116082695 (111M) [application/x-tar]
Saving to: “hive-1.1.0-cdh5.7.0.tar.gz”
100%[====================================================================================>] 116,082,695 27.4K/s in 90m 47s
2019-07-24 02:10:38 (20.8 KB/s) - “hive-1.1.0-cdh5.7.0.tar.gz” saved [116082695/116082695]
[hadoop@10-9-15-140 soft]$
解压
[hadoop@10-9-15-140 soft]$ tar -zxvf hive-1.1.0-cdh5.7.0.