赞
踩
tar -zxvf /opt/soft/apache-hive-2.3.4-bin.tar.gz -C /usr/local/src/
vim ~/.bash_profile
添加内容:
export HIVE_HOME=/usr/local/src/apache-hive-2.3.4-bin/
PATH=$HIVE_HOME/bin:$PATH:$HOME/bin
source ~/.bash_profile
vim /usr/local/src/apache-hive-2.3.4-bin/conf/hive-site.xml
<configuration> <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://cluster01:3306/hive</value> </property> <property> <name>javax.jdo.option.ConnectionDriverName</name> <value>com.mysql.jdbc.Driver</value> </property> <property> <name>javax.jdo.option.ConnectionUserName</name> <value>root</value> </property> <property> <name>javax.jdo.option.ConnectionPassword</name> <value>123456</value> </property> < /configuration>
cp /opt/soft/mysql-connector-java-5.1.49.jar /usr/local/src/hive-2.3.4/lib/mysql-connector-java-5.1.49.jar
schematool -dbType mysql -initSchema
hive --version
hive
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。