- Machine Learning with Spark(Second Edition)
- Rajdeep Dua Manpreet Singh Ghotra Nick Pentreath
- 241字
- 2021-07-09 21:07:39
Spark clusters
A Spark cluster is made up of two types of processes: a driver program and multiple executors. In the local mode, all these processes are run within the same JVM. In a cluster, these processes are usually run on separate nodes.
For example, a typical cluster that runs in Spark's standalone mode (that is, using Spark's built-in cluster management modules) will have the following:
- A master node that runs the Spark standalone master process as well as the driver program
- A number of worker nodes, each running an executor process
While we will be using Spark's local standalone mode throughout this book to illustrate concepts and examples, the same Spark code that we write can be run on a Spark cluster. In the preceding example, if we run the code on a Spark standalone cluster, we could simply pass in the URL for the master node, as follows:
$ MASTER=spark://IP:PORT --class org.apache.spark.examples.SparkPi
./examples/jars/spark-examples_2.11-2.0.0.jar 100
Here, IP is the IP address and PORT is the port of the Spark master. This tells Spark to run the program on the cluster where the Spark master process is running.
A full treatment of Spark's cluster management and deployment is beyond the scope of this book. However, we will briefly teach you how to set up and use an Amazon EC2 cluster later in this chapter.
For an overview of the Spark cluster-application deployment, take a look at the following links:
- Photoshop CS4經(jīng)典380例
- Cloud Analytics with Microsoft Azure
- 統(tǒng)計(jì)策略搜索強(qiáng)化學(xué)習(xí)方法及應(yīng)用
- 大數(shù)據(jù)平臺(tái)異常檢測(cè)分析系統(tǒng)的若干關(guān)鍵技術(shù)研究
- CompTIA Linux+ Certification Guide
- 分?jǐn)?shù)階系統(tǒng)分析與控制研究
- 在實(shí)戰(zhàn)中成長(zhǎng):C++開(kāi)發(fā)之路
- 基于敏捷開(kāi)發(fā)的數(shù)據(jù)結(jié)構(gòu)研究
- 數(shù)據(jù)清洗
- 天才與算法:人腦與AI的數(shù)學(xué)思維
- JSP通用范例開(kāi)發(fā)金典
- 大數(shù)據(jù):從基礎(chǔ)理論到最佳實(shí)踐
- 工業(yè)控制系統(tǒng)安全
- 機(jī)器人輔助C程序設(shè)計(jì)
- KUKA工業(yè)機(jī)器人與西門子S7-1200 PLC技術(shù)及應(yīng)用