cd /opt/soft/hive312/conf/
cp hive-default.xml.template hive-site.xml
vim hive-site.xml
hive.metastore.warehouse.dir /usr/soft/apache-hive-1.2.2-bin/warehouse hive.metastore.local true javax.jdo.option.ConnectionURL jdbc:mysql://127.0.0.1:3306/hive?createDatabaseIfNotExist=true&characterEncoding=UTF-8&useSSL=false javax.jdo.option.ConnectionDriverName com.mysql.jdbc.Driver javax.jdo.option.ConnectionUserName root javax.jdo.option.ConnectionPassword okok hive.server2.authentication NONE hive.server2.thrift.client.user root hive.server2.thrift.client.password root
移动本地maven包到虚拟机/opt/soft/hive312/lib
vim /etc/profile
#hive envirorment export HIVE_HOME=/opt/soft/hive312 export PATH=$PATH:$HIVE_HOME/bin
source /etc/profile
schematool -dbType mysql -initSchema
报了错
删除/hive/lib/下的guava
cp /opt/soft/hadoop313/share/hadoop/common/lib/guava-27.0-jre.jar /opt/soft/hive312/lib/



