nohup /export/server/hive-2.1.0/bin/hive --service metastore &
编写配置文件hive-site.xml,并放于node3的【$SPARK_HOME/conf】目录
<?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://node3:9083</value>
</property>
</configuration>
/export/server/hive-2.1.0bin/spark-sql --master local[2] --conf spark.sql.shuffle.partitions=2