[Interactive Q & A sharing] The 18th issue won the big data era of cloud computing, spark Asia Pacific Research Institute public welfare Lecture Hall (change)

Source: Internet
Author: User

 

"Winning the cloud computing Big Data era"

Spark Asia Pacific Research Institute Stage 1 Public Welfare lecture hall [Stage 1 interactive Q & A sharing]

 

Q1: Is the master and driver the same thing?

  • The two are not the same. In standalone mode, the master node is used for cluster resource management and scheduling, while the driver is used to command executors on the worker to process tasks in multiline mode;

  • The master node is located on the Management node of the cluster. Generally, it is on the same node as namenode;

  • Generally, the driver is located on the client. The client generally does not belong to the cluster, but is in the same network environment as the cluster, because the driver in the client needs to frequently interact with the executor in the cluster;

 

Q2: How to Select between standalone and Yarn

  • Standalone and yarn are both systems used for resource management. standalone is a lightweight resource management and allocation method specially designed for spark, and yarn is a general resource management framework for big data, it can be used not only to manage spark vertex resource allocation, but also to manage and allocate resources for other computing platforms of yarn;

  • If multiple computing frameworks such as spark, mapreduce, and mahout coexist in the production system, we recommend that you use yarn or mesos for unified resource management and scheduling. If you only use spark, standalone is enough, and yarn consumes resources;

Q3: How does spark's Ha handle it?

  • For Master ha, in standalone mode, the worker node is automatically ha. For Master ha, Zookeeper is generally used;

  • Utilizing zookeeper to provide leader election and some state storage, You can launch multiple masters in your cluster connected to the same zookeeper instance. one will be elected "leader" and the others will remain in standby mode. if the current leader dies, another master will be elected, recover the old master's state, and then resume scheduling. the entire recovery process (from the time the first leader goes down) shocould take between 1 and 2 minutes. note that this delay only affects scheduling new applications-applications that were already running during master failover are unaffected;

  • For yarn and mesos modes, ResourceManager generally uses zookeeper for HA;

[Interactive Q & A sharing] The 18th issue won the big data era of cloud computing, spark Asia Pacific Research Institute public welfare Lecture Hall (change)

Related Article

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.