赞
踩
安装包:apache-hive-3.1.2-bin.tar.gz
创建用户 hive
mysql > grant all privileges on *.* to 'hive'@'%' identified by '123456';
Zookeeper:zookeeper-3.4.14
Hadoop:hadoop-3.1.2
HBase:hbase-2.2.1-bin
[admin@centos7x3 conf]$ cp hive-env.sh.template hive-env.sh
[admin@centos7x3 conf]$ vim hive-env.sh
# HADOOP_HOME=${bin}/../../hadoop
HADOOP_HOME=/opt/software/hadoop
# 这一条是用来关联Hbase的,使用这条可以不在hive-site.xmld里声明hive.aux.jars.path
export HBASE_HOME=/opt/software/hbase
<configuration> <property> <name>hive.metastore.schema.verification</name> <value>false</value> </property> <!-- 用来指定 Hive 数据仓库的数据存储在 HDFS 上的目录 --> <property> <name>hive.metastore.warehouse.dir</name> <value>/hive/warehouse</value> </property> <property> <name>hive.exec.scratchdir</name> <value>/hive/tmp</value> </property> <property> <name>hive.querylog.location</name> <value>/hive/log</value> </property> <property></
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。