CentOS6.5下Hive环境安装及搭建

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/anzhenxi3529/article/details/102624844

1.环境变量配置:

vim /etc/profile

2.软件安装:

total 230832
drwxr-xr-x. 11 root       root            4096 Oct 17 05:54 apache-hive-2.3.6-bin
-rw-rw-r--.  1 cleargotcl cleargotcl 232225538 Oct 16 19:06 apache-hive-2.3.6-bin.tar.gz
drwxrwxrwx.  4 root       root            4096 Oct 17  2014 mysql-connector-java-5.1.34
-rw-rw-r--.  1 cleargotcl cleargotcl   4134979 Oct 17 00:28 mysql-connector-java-5.1.34.1.zip

3.配置修改:

[root@hadoop001 apache-hive-2.3.6-bin]# cd conf
[root@hadoop001 conf]# ll
total 296
-rw-r--r--. 1 root root   1596 Aug 12 15:04 beeline-log4j2.properties.template
-rw-r--r--. 1 root root 257573 Aug 13 11:56 hive-default.xml.template
-rw-r--r--. 1 root root   2596 Oct 18 03:54 hive-env.sh
-rw-r--r--. 1 root root   2365 Aug 12 15:04 hive-env.sh.template
-rw-r--r--. 1 root root   2274 Aug 12 15:04 hive-exec-log4j2.properties.template
-rw-r--r--. 1 root root   2925 Aug 12 15:06 hive-log4j2.properties.template
-rw-r--r--. 1 root root   1793 Oct 18 03:56 hive-site.xml
-rw-r--r--. 1 root root   2060 Aug 12 15:04 ivysettings.xml
-rw-r--r--. 1 root root   2719 Aug 12 15:06 llap-cli-log4j2.properties.template
-rw-r--r--. 1 root root   7041 Aug 12 15:06 llap-daemon-log4j2.properties.template
-rw-r--r--. 1 root root   2662 Aug 12 15:04 parquet-logging.properties

4.hive-env.sh

5.运行hive是否成功

[root@hadoop001 bin]# ./hive
which: no hbase in (/usr/local/hadoop/hadoop-2.6.5/bin:/usr/local/hadoop/hadoop-2.6.5/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/java/jdk1.7.0_71/bin:/usr/local/hadoop/hadoop-2.6.5/bin:/usr/local/hadoop/hadoop-2.6.5/sbin:/usr/local/java/jdk1.7.0_71/bin:/bin:/usr/local/hadoop/hadoop-2.6.5/bin:/usr/local/hive/apache-hive-2.3.6-bin/bin:/home/cleargotcl/bin)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hive/apache-hive-2.3.6-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-2.6.5/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

Logging initialized using configuration in jar:file:/usr/local/hive/apache-hive-2.3.6-bin/lib/hive-common-2.3.6.jar!/hive-log4j2.properties Async: true
Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. tez, spark) or using Hive 1.X releases.

6.成功如下:

猜你喜欢

转载自blog.csdn.net/anzhenxi3529/article/details/102624844