

{"id":864,"date":"2016-08-02T14:55:45","date_gmt":"2016-08-02T14:55:45","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=864"},"modified":"2018-11-19T16:13:14","modified_gmt":"2018-11-19T10:43:14","slug":"spark-installation-standalone-mode","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/","title":{"rendered":"Spark Installation in Standalone Mode | Install Apache Spark"},"content":{"rendered":"<h2>1. Objective &#8211; Apache Spark Installation<\/h2>\n<p>This tutorial contains steps for\u00a0<a href=\"http:\/\/data-flair.training\/blogs\/apache-spark-tutorial\/\"><strong>Apache Spark<\/strong> <\/a>Installation in Standalone Mode on Ubuntu. The Spark\u00a0<strong>standalone mode <\/strong>sets\u00a0the system\u00a0without any existing cluster management software. For example\u00a0<strong><a href=\"http:\/\/data-flair.training\/blogs\/deep-dive-into-hadoop-yarn-resource-manager\/\">Yarn Resource Manager<\/a><\/strong>\u00a0\/ <strong><a href=\"http:\/\/data-flair.training\/blogs\/apache-mesos-tutorial-learn-mesos\/\">Mesos<\/a><\/strong>. We have spark master and spark worker who divides driver and executors for Spark application in Standalone mode.<\/p>\n<p>So, let&#8217;s start Spark Installation in Standalone Mode.<\/p>\n<div id=\"attachment_42786\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-42786\" class=\"size-full wp-image-42786\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg\" alt=\"Spark Installation in Standalone Mode | Install Apache Spark\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-42786\" class=\"wp-caption-text\">Spark Installation in Standalone Mode | Install Apache Spark<\/p><\/div>\n<h2>2. Steps to Apache Spark Installation in Standalone Mode<\/h2>\n<p>Let&#8217;s Follow the steps given below for Apache Spark Installation in Standalone Mode-<\/p>\n<h3>i. Platform<\/h3>\n<h4>a. Platform Requirements<\/h4>\n<p><strong>Operating system:<\/strong> Ubuntu 14.04 or later, we can also use other<a href=\"http:\/\/data-flair.training\/blogs\/frequent-linux-commands-beginners-tutorial\/\"> Linux<\/a> flavors like CentOS, Redhat, etc.<\/p>\n<h4>b. Configure &amp; Setup Platform<\/h4>\n<p>If you are using Windows \/ Mac Operating System, so, you can\u00a0<a href=\"http:\/\/data-flair.training\/blogs\/install-ubuntu-vmware-player\/\">create a virtual machine and install Ubuntu using VMWare Player<\/a>, or you can <a href=\"http:\/\/data-flair.training\/blogs\/step-by-step-installation-of-ubuntu-on-virtual-box\/\">create a virtual machine and install Ubuntu using Oracle Virtual Box<\/a>.<\/p>\n<h3>ii. Software you need to install before installing Spark<\/h3>\n<h4>a. Install Java<\/h4>\n<p>You need to install Java before Spark installation.\u00a0So, let\u2019s begin by installing Java. So, use the below command to download and install Java-<br \/>\n[php]$ sudo apt-get install python-software-properties[\/php]<br \/>\n[php]$ sudo apt-add-repository ppa:webupd8team\/java[\/php]<br \/>\n[php]$ sudo apt-get update[\/php]<br \/>\n[php]$ sudo apt-get install oracle-java7-installer[\/php]<br \/>\nOn executing this command Java gets start downloading and gets installed.<br \/>\nTo check whether installation procedure gets completed and a completely working Java is installed or not and to know the version of Java installed we have to use the below command-<br \/>\n[php] $ java -version[\/php]<\/p>\n<h4>b. Installing Scala<\/h4>\n<p><strong>Download Scala<\/strong><\/p>\n<p>Download the latest version of<strong> <a href=\"http:\/\/data-flair.training\/blogs\/why-you-should-learn-scala-introductory-tutorial\/\">Scala<\/a> <\/strong>from <a href=\"http:\/\/www.scala-lang.org\/\">http:\/\/www.scala-lang.org\/<\/a><br \/>\n<strong>Apache Spark<\/strong> is written in Scala, so we need to install Scala to built Spark.\u00a0Follow the steps given below for installing Scala.<\/p>\n<p><strong>Untar the file<\/strong><\/p>\n<p>[php] $ sudo tar xvf scala-2.10.4.tgz [\/php]<\/p>\n<p><strong>Edit <\/strong>Bashrc<strong> file<\/strong><\/p>\n<p>Make an entry for Scala in .bashrc file<br \/>\n[php] nano ~\/.bashrc[\/php]<br \/>\nAnd add the following path at the end of the file. It means adding the location, where the Scala software file are located to the PATH variable.<br \/>\n[php] export SCALA_HOME=Path-where-scala-file-is-located[\/php]<br \/>\n[php] export PATH=$PATH:$SCALA_HOME\/bin[\/php]<br \/>\nSource the changed .bashrc file by the command<br \/>\n[php] source ~\/.bashrc[\/php]<\/p>\n<p><strong>Verifying Scala Installation<\/strong><\/p>\n<p>After installation, it is good to verify it. Use the following command for verifying Scala installation.<br \/>\n[php] $scala -version[\/php]<\/p>\n<h3>iii.\u00a0Installing Spark<\/h3>\n<p>Install Spark in standalone mode on a Single node cluster &#8211; for Apache Spark Installation in Standalone Mode, simply place Spark setup on the node of the cluster and extract and configure it. Follow this guide If you are planning to <strong><a href=\"http:\/\/data-flair.training\/blogs\/install-deploy-run-spark-2-x-multi-node-cluster-step-by-step-guide\/\">install Spark on a multi-node cluster<\/a><\/strong>.<\/p>\n<h4>a.\u00a0Download Spark<\/h4>\n<p>Download the latest version of Spark from <a href=\"http:\/\/spark.apache.org\/downloads.html\">http:\/\/spark.apache.org\/downloads.html<\/a> of\u00a0your choice from the Apache Spark website.<br \/>\nFollow the steps given below for installing Spark.<\/p>\n<h4>b.\u00a0Extracting Spark tar<\/h4>\n<p>Use the following command for extracting the spark tar file.<br \/>\n[php] $ tar xvf spark-2.0.0-bin-hadoop2.6.tgz[\/php]<\/p>\n<h4>c.\u00a0Setting up the environment for Spark<\/h4>\n<p>Make an entry for Spark in .bashrc file<br \/>\n[php]nano ~\/.bashrc[\/php]<br \/>\nAdd the following line to the ~\/.bashrc file. It means adding the location, where the spark software files are located to the PATH variable.<br \/>\n[php] export SPARK_HOME=\/home\/sapna\/spark-2.0.0-bin-hadoop2.6\/<br \/>\nexport PATH=$PATH:$SPARK_HOME\/bin[\/php]<br \/>\nUse the following command for sourcing the ~\/.bashrc file.<br \/>\n[php] $ source ~\/.bashrc[\/php]<\/p>\n<h3>iv.\u00a0Start Spark Services<\/h3>\n<h4>a. Starting a Cluster Manually<\/h4>\n<p>Now, start a standalone master server by executing-<br \/>\n[php].\/sbin\/start-master.sh [\/php]<\/p>\n<div id=\"attachment_907\" style=\"width: 1376px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114340.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-907\" class=\"wp-image-907 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114340.png\" alt=\"Spark Installation\" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114340.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114340-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114340-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114340-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114340-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-907\" class=\"wp-caption-text\">Spark Installation &#8211; Starting a standalone master server<\/p><\/div>\n<div id=\"attachment_917\" style=\"width: 1376px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114404.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-917\" class=\"wp-image-917 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114404.png\" alt=\"Spark Installation\" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114404.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114404-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114404-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114404-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114404-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-917\" class=\"wp-caption-text\">Spark Installation &#8211; Start a standalone master server<\/p><\/div>\n<div id=\"attachment_921\" style=\"width: 1376px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114643.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-921\" class=\"wp-image-921 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114643.png\" alt=\"Spark Installation\" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114643.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114643-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114643-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114643-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114643-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-921\" class=\"wp-caption-text\">Apache Spark Installation in Standalone Mode<\/p><\/div>\n<p>After running, the master will print out a spark:\/\/HOST:PORT URL for itself,<br \/>\nwhich can be used to connect workers to it, or pass as the \u201cmaster\u201d argument to <strong><a href=\"http:\/\/data-flair.training\/blogs\/sparkcontext-in-apache-spark-tutorial\/\">SparkContext<\/a><\/strong>.<br \/>\nYou will get this URL on the master\u2019s web UI, which is http:\/\/localhost:8080<br \/>\nPreview of web console of master using local http:\/\/localhost:8080<\/p>\n<div id=\"attachment_867\" style=\"width: 1376px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-115705.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-867\" class=\"wp-image-867 size-full\" style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height: 1.5\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-115705.png\" alt=\"Spark Installation\" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-115705.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-115705-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-115705-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-115705-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-115705-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-867\" class=\"wp-caption-text\">Spark Installation &#8211; Preview of web console of master<\/p><\/div>\n<p>Similarly, you can start one or more workers and connect them to the master via-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">.\/sbin\/start-slave.sh &lt;master-spark-URL&gt;<\/pre>\n<pre>[php].\/sbin\/start-slave.sh spark:\/\/sapna-All-Series:7077[\/php]<\/pre>\n<div id=\"attachment_920\" style=\"width: 1376px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114833.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-920\" class=\"wp-image-920 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114833.png\" alt=\"Spark Installation\" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114833.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114833-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114833-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114833-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114833-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-920\" class=\"wp-caption-text\">Spark Installation &#8211; start one or more workers and connect them to the master<\/p><\/div>\n<div id=\"attachment_922\" style=\"width: 1376px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114921.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-922\" class=\"wp-image-922 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114921.png\" alt=\"Spark Installation \" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114921.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114921-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114921-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114921-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114921-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-922\" class=\"wp-caption-text\">Spark Installation<\/p><\/div>\n<p><strong>Note:<\/strong><em> You can copy master-spark-Url from master web console\u00a0(http:\/\/localhost:8080)<\/em><\/p>\n<h4>b. Check whether Spark daemons are working<\/h4>\n<p>[php]jps<br \/>\n7698 Master<br \/>\n4582 Worker<br \/>\n[\/php]<\/p>\n<div id=\"attachment_918\" style=\"width: 1376px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114958-1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-918\" class=\"wp-image-918 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114958-1.png\" alt=\"Spark Installation \" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114958-1.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114958-1-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114958-1-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114958-1-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-05-114958-1-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-918\" class=\"wp-caption-text\">Spark Installation &#8211; Check whether the Spark daemons are working or not<\/p><\/div>\n<h3>v. Running sample\u00a0Spark\u00a0application<\/h3>\n<p>Once you have done Apache Spark Installation in Standalone Mode Let&#8217;s run Apache Spark Pi example (the jar for the example is shipped with Spark)<br \/>\n[php].\/bin\/spark-submit &#8211;class org.apache.spark.examples.SparkPi &#8211;master spark:\/\/sapna-All-Series:7077 &#8211;executor-memory 1G &#8211;total-executor-cores 1 \/home\/sapna\/spark-2.0.0-bin-hadoop2.6\/examples\/jars\/spark-examples_2.11-2.0.0.jar 10[\/php]<br \/>\n&#8211;class: The entry point for your application.<br \/>\n&#8211;master: The master URL for the cluster.<br \/>\n&#8211;executor-memory: Specify memory to be\u00a0allocated for the application.<br \/>\n&#8211;total-executor-cores:\u00a0Specify no. of CPU cores\u00a0to be\u00a0allocated for the application.<\/p>\n<div id=\"attachment_870\" style=\"width: 1376px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/data-flair.training\/blogs\/wp-content\/uploads\/Screenshot-from-2016-08-02-124010.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-870\" class=\"wp-image-870 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-124010.png\" alt=\"Spark Installation \" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-124010.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-124010-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-124010-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-124010-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-124010-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-870\" class=\"wp-caption-text\">Spark Installation &#8211; Apache Spark Pi example<\/p><\/div>\n<p><strong>Result:<\/strong><br \/>\nPi is roughly 3.141803141803142<\/p>\n<h3>vi. Starting the\u00a0Spark Shell<\/h3>\n<p>[php]$ bin\/spark-shell spark:\/\/sapna-All-Series:7077[\/php]<\/p>\n<div id=\"attachment_879\" style=\"width: 1376px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-142849.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-879\" class=\"wp-image-879 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-142849.png\" alt=\"Spark Installation \" width=\"1366\" height=\"768\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-142849.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-142849-150x84.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-142849-300x169.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-142849-768x432.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/Screenshot-from-2016-08-02-142849-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><p id=\"caption-attachment-879\" class=\"wp-caption-text\">Spark Installation &#8211; Starting the Spark Shell<\/p><\/div>\n<p>Now to play with Spark, firstly\u00a0<strong><a href=\"http:\/\/data-flair.training\/blogs\/how-to-create-rdds-in-apache-spark\/\">create RDD<\/a><\/strong> and perform various RDD operations using<a href=\"http:\/\/data-flair.training\/blogs\/apache-spark-shell-commands-beginners-guide-tutorial\/\">\u00a0this Spark shell commands tutorial.<\/a><br \/>\n<b>See Also-<\/b><\/p>\n<ul>\n<li><a href=\"http:\/\/data-flair.training\/blogs\/create-run-first-spark-project-scala-eclipse-without-maven\/\">Create First Spark Project in Scala in Eclipse without Maven<\/a>.<\/li>\n<li><a href=\"http:\/\/data-flair.training\/blogs\/how-apache-spark-works-run-time-spark-architecture\/\">How does Apache Spark work?<\/a><\/li>\n<\/ul>\n<p>Reference:<br \/>\n<a href=\"http:\/\/spark.apache.org\/\">http:\/\/spark.apache.org\/<\/a><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2378,&quot;href&quot;:&quot;http:\\\/\\\/www.scala-lang.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251206135355\\\/https:\\\/\\\/www.scala-lang.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 05:30:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-17 00:03:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-23 11:21:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-29 20:42:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-04 20:11:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-08 12:34:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-13 01:19:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-16 21:42:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-20 15:18:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-24 12:31:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-27 17:28:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-31 15:02:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 20:39:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 14:16:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-18 14:03:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-24 08:14:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-27 08:49:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-04 21:35:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 23:08:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-18 19:25:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 23:07:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-30 06:33:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 01:23:34&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-06 08:37:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 21:32:42&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-14 08:24:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-17 23:59:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 19:28:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-27 14:30:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-05 13:43:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-12 08:25:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-15 08:46:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-20 13:41:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-26 04:27:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-29 05:59:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 10:54:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-17 14:29:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-21 20:40:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-27 01:21:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-30 13:31:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-03 21:05:33&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-07-07 22:48:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-11 08:46:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-15 02:57:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-19 13:16:35&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-19 13:16:35&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:2388,&quot;href&quot;:&quot;http:\\\/\\\/spark.apache.org\\\/downloads.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251002061320\\\/https:\\\/\\\/spark.apache.org\\\/downloads.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 06:24:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-14 12:45:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-17 14:56:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-20 17:30:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-24 01:45:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-28 14:19:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-31 16:26:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-03 20:08:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-08 10:52:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-12 10:09:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-16 05:10:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-20 15:18:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-25 15:24:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-28 19:02:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-01 16:32:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 20:39:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-09 05:16:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-15 16:28:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-19 01:33:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-22 13:56:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-26 05:32:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-01 16:50:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-07 11:04:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-10 16:43:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-14 14:57:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 19:00:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 04:25:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 04:38:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-29 22:34:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 01:24:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-06 08:37:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 21:32:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 06:19:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-17 23:59:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 13:40:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-25 20:16:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-29 12:41:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-04 19:02:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-11 11:33:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-14 12:36:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-20 13:41:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-24 23:44:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-28 06:34:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 10:54:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 16:54:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-09 09:05:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-15 06:15:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-20 04:24:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-27 10:21:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-30 17:41:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-03 18:45:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-07 22:48:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-11 06:58:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-15 01:10:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-19 02:31:09&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-19 02:31:09&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:2354,&quot;href&quot;:&quot;http:\\\/\\\/spark.apache.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251009215151\\\/https:\\\/\\\/spark.apache.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 04:17:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-14 07:11:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-17 07:55:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-20 14:34:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-23 15:49:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-26 15:59:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-30 07:08:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 07:19:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-05 08:37:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-08 09:28:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-11 11:37:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-14 12:46:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-17 20:26:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-20 20:31:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-24 06:20:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-27 06:26:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-30 07:17:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-02 07:26:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-05 10:18:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-08 12:50:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-11 14:05:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-14 15:00:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-18 00:17:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-21 06:52:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-24 08:35:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-27 08:54:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-02 09:01:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 09:57:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 12:27:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 12:42:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-14 23:54:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-18 03:00:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 06:08:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 07:13:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-27 09:23:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-30 11:37:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-02 13:11:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-05 14:53:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-08 19:36:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-11 23:42:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-15 01:00:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-18 06:16:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 07:55:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-24 09:26:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-27 11:00:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-30 12:57:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-03 13:36:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-06 19:54:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-10 07:47:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 09:22:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-16 16:11:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-19 16:22:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-22 17:30:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-25 20:07:42&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-05-29 03:42:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 10:44:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 10:50:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-07 10:53:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-10 11:32:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-13 13:26:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-17 00:18:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-20 03:02:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-23 10:46:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-26 12:51:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-29 12:51:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-02 13:46:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-05 16:50:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-09 05:30:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-12 14:20:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-15 20:00:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-19 06:45:58&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-19 06:45:58&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Objective &#8211; Apache Spark Installation This tutorial contains steps for\u00a0Apache Spark Installation in Standalone Mode on Ubuntu. The Spark\u00a0standalone mode sets\u00a0the system\u00a0without any existing cluster management software. For example\u00a0Yarn Resource Manager\u00a0\/ Mesos. We&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":42786,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[896,3763,6796,8176,13022,13026,13045,13066,16623,13113,13143,16624],"class_list":["post-864","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spark","tag-apache-spark","tag-deploy-spark","tag-install-spark","tag-learn-spark","tag-spark-scala","tag-spark-api","tag-spark-course","tag-spark-install-ubuntu","tag-spark-installation","tag-spark-setup","tag-spark-ubuntu","tag-standalone-mode-spark-installation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spark Installation in Standalone Mode | Install Apache Spark - DataFlair<\/title>\n<meta name=\"description\" content=\"Apache Spark Installation in Standalone Mode- how to download Apache Spark, install &amp; configure Spark on Ubuntu.Run Spark Application after installing Spark\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spark Installation in Standalone Mode | Install Apache Spark - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Apache Spark Installation in Standalone Mode- how to download Apache Spark, install &amp; configure Spark on Ubuntu.Run Spark Application after installing Spark\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-02T14:55:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-19T10:43:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spark Installation in Standalone Mode | Install Apache Spark - DataFlair","description":"Apache Spark Installation in Standalone Mode- how to download Apache Spark, install & configure Spark on Ubuntu.Run Spark Application after installing Spark","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/","og_locale":"en_US","og_type":"article","og_title":"Spark Installation in Standalone Mode | Install Apache Spark - DataFlair","og_description":"Apache Spark Installation in Standalone Mode- how to download Apache Spark, install & configure Spark on Ubuntu.Run Spark Application after installing Spark","og_url":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2016-08-02T14:55:45+00:00","article_modified_time":"2018-11-19T10:43:14+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Spark Installation in Standalone Mode | Install Apache Spark","datePublished":"2016-08-02T14:55:45+00:00","dateModified":"2018-11-19T10:43:14+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/"},"wordCount":992,"commentCount":7,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg","keywords":["apache spark","deploy spark","install spark","learn spark","spark &amp; Scala","Spark API","spark course","spark install ubuntu","Spark Installation","spark setup","spark ubuntu","Standalone mode spark installation"],"articleSection":["Apache Spark Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/","url":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/","name":"Spark Installation in Standalone Mode | Install Apache Spark - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg","datePublished":"2016-08-02T14:55:45+00:00","dateModified":"2018-11-19T10:43:14+00:00","description":"Apache Spark Installation in Standalone Mode- how to download Apache Spark, install & configure Spark on Ubuntu.Run Spark Application after installing Spark","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/08\/apache-spark-installation-in-standalone-mode-1-768x402-2.jpg","width":1200,"height":628,"caption":"Spark Installation in Standalone Mode | Install Apache Spark"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/spark-installation-standalone-mode\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Apache Spark Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/spark\/"},{"@type":"ListItem","position":3,"name":"Spark Installation in Standalone Mode | Install Apache Spark"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=864"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/864\/revisions"}],"predecessor-version":[{"id":42788,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/864\/revisions\/42788"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/42786"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}