1. nohup /export/server/hive-2.1.0/bin/hive --service metastore &
    2. 编写配置文件hive-site.xml,并放于node3的【$SPARK_HOME/conf】目录
    3. <?xml version="1.0"?>
    4. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
    5. <configuration>
    6. <property>
    7. <name>hive.metastore.warehouse.dir</name>
    8. <value>/user/hive/warehouse</value>
    9. </property>
    10. <property>
    11. <name>hive.metastore.local</name>
    12. <value>false</value>
    13. </property>
    14. <property>
    15. <name>hive.metastore.uris</name>
    16. <value>thrift://node3:9083</value>
    17. </property>
    18. </configuration>
    19. /export/server/hive-2.1.0bin/spark-sql --master local[2] --conf spark.sql.shuffle.partitions=2