Spark-submit the task to yarn for execution

Source: Internet
Author: User
Spark-submit -- name sparksubmit_demo -- class com. luogankun. Spark. wordcount -- masterYarn-Client-- Executor-memory 1g -- total-executor-cores 1/home/spark/data/spark. Jar HDFS: // hadoop000: 8020/hello.txt

Note: hadoop_conf_dir needs to be configured for execution on the submitted yarn.

 

When spark is submitted, the resource application is completed at one time. That is to say, the number of executors required for a specific application is calculated at the beginning, if the entire cluster can meet the requirements at this time, it will be submitted; otherwise, it will wait. If a new node is added to the entire cluster, the running program cannot use these new resources. The rebalance mechanism is missing (from Xu Peng's blog ).

 

For more information, see the official documentation: http://spark.apache.org/docs/latest/submitting-applications.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.