start-all.sh
nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service metastore &
nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service hiveserver2 &
mr-jobhistory-daemon.sh start historyserver
/export/server/spark/sbin/start-history-server.sh
# 进入 Spark 安装目录
cd /export/server/spark/conf
# 增加 hive-site.xml 配置文件
vim hive-site.xml
# 增加以下配置信息 三台虚拟机都要有这一步
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
  
    <property>
      <name>hive.metastore.warehouse.dir</name>
      <value>/user/hive/warehouse</value>
    </property>
  
    <property>
      <name>hive.metastore.local</name>
      <value>false</value>
    </property>
  
    <property>
      <name>hive.metastore.uris</name>
      <value>thrift://node1:9083</value>
    </property>
  
</configuration>