Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Apache Spark 2

You're reading from  Learning Apache Spark 2

Product type Book
Published in Mar 2017
Publisher Packt
ISBN-13 9781785885136
Pages 356 pages
Edition 1st Edition
Languages

Table of Contents (18) Chapters

Learning Apache Spark 2
Credits
About the Author
About the Reviewers
www.packtpub.com
Customer Feedback
Preface
Architecture and Installation Transformations and Actions with Spark RDDs ETL with Spark Spark SQL Spark Streaming Machine Learning with Spark GraphX Operating in Clustered Mode Building a Recommendation System Customer Churn Prediction Theres More with Spark

Running Spark in standalone mode


A standalone mode is basically when Spark uses its default mode provided with the application and does not use one of the externally provided cluster managers like YARN or Mesos. In this section, we'll look at the following key topics:

  • Installing Spark Standalone on a cluster
  • Starting the cluster
    • Manually
    • Launch-Scripts
  • Launching an application in the cluster
  • Monitoring
  • Configuring High-Availability
    • Configuring Stand-by masters with ZooKeeper
    • Recovery with the FileSystem

Installing Spark standalone on a cluster

In our example we are going to build a 6 node Spark cluster, and have a windows machine submit Spark jobs to the cluster. We'll not develop a new Spark program, but rather submit the examples provided with the Spark Framework for the purpose of this exercise. Our architecture looks something like the following image:

Figure 8.2: Spark Standalone Cluster Deployment

The installation of a standalone cluster is very simple, you need to place...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}