Spark學習-04-SparkSQLCLI單節點運行與yarn集群運行

來源:互聯網
上載者:User
關鍵字 Spark 單節點運行 yarn集群運行 SparkSQL

1。 單節點運行

bin/spark-sql --master spark://bigdata01.hzjs.co:7077 --executor-memory 40g --total-executor-cores 50 --conf spark.sql.warehouse.dir=hdfs://bigdata01.hzjs.co:8020/user/sparksql --conf spark.driver.maxResultSize=4g

缺點:資料量特別大會造成集群任務死掉

2。 集群運行

bin/spark-sql --master yarn-client --executor-memory 80g --conf spark.sql.warehouse.dir=hdfs://bigdata01.hzjs.co :8020/user/sparksql --conf spark.driver.maxResultSize=10g
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.