上传hive到hadoop103的/export/servers
scp -r D:\桌面\hadoop笔记\资料\04_jar包\hive-3.1.2-bin.tar.gz root@hadoop103:/export/servers/
解压hiev到当前文件夹
tar -zxvf /export/servers/hive-3.1.2-bin.tar.gz -C ./
修改文件名
mv apache-hive-3.1.2-bin hive
配置hadoop103主机的hive-site.xml文件
<configuration>
<property>
<name>hive.metastore.local</name>
<value>false</value>
</property>
<property>
<name>hive.metastore.uris</name>
<value>thrift://hadoop102:9083</value>
</property>
</configuration>
配置hadoop103主机中hadoop目录下的core-site.xml文件
cd /export/servers/hadoop/etc/hadoop
vim core-site