• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Install Apache Spark on Ubuntu Single Cloud Server With Hadoop

By Abhishek Ghosh January 22, 2017 1:05 pm Updated on January 22, 2017

Install Apache Spark on Ubuntu Single Cloud Server With Hadoop

Advertisement

We can clarify the so called Big Data related softwares as Batch-only framework which includes Apache Hadoop, Stream-only frameworks which includes Apache Storm, Apache Samza and Hybrid framework which includes Apache Spark and Apache Flink. Apache Hadoop can be considered a processing framework with MapReduce as its default processing engine. Apache Spark can hook into Hadoop to replace MapReduce. This interoperability between them is one reason why these systems has been great. Apache Spark is a batch processing framework with stream processing capabilities. Principles of Hadoop’s MapReduce engine and Spark is not hugely different but Spark focuses primarily on speeding up batch processing workloads by offering full in-memory computation and processing optimization. Spark can be deployed as a standalone cluster or as we said few sentences before – can hook into Hadoop as an alternative to the MapReduce engine.In this guide we are showing how to install Apache Spark on Ubuntu single Cloud Server instance with Hadoop and also without installing Hadoop. We will suggest you to read our previous guide to install Apache Hadoop on Ubuntu single cloud server. That is master guide and many things like cheaper servers as option to practice, type of virtualization etc has been explained. It will take time to read and follow that guide. Please read again and again till the things becomes clear to you.

Install Apache Spark on Ubuntu Single Cloud Server With Hadoop

 

Install Apache Spark on Ubuntu Single Cloud Server (Standalone)

 

We are setting up Apache Spark 2 on Ubuntu 16.04 as separate instance. It is not common for a new user. We deliberately shown two ways under two separate subheadings. Here are Spark 2 stuffs (which is latest at the time of publishing this guide) :

Vim
1
http://www.apache.org/dist/spark/spark-2.1.0/

Funnily it is just few steps to install as standalone. The subdomain d3kbcqa49mib13.cloudfront.net is of official Apache :

Advertisement

---

Vim
1
2
3
4
5
6
7
8
9
10
11
12
apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version
mkdir /opt/scala
wget http://downloads.lightbend.com/scala/2.12.1/scala-2.12.1.deb
dpkg -i scala-2.12.1.deb
wget http://d3kbcqa49mib13.cloudfront.net/spark-2.0.2-bin-hadoop2.7.tgz
tar xvf spark-2.0.2-bin-hadoop2.7.tgz
cp -rv spark-2.0.2-bin-hadoop2.7 /opt/spark
cd /opt/spark
./bin/spark-shell --master local[2]

That ends a standalone installation.

 

Install Apache Spark on Ubuntu Single Cloud Server With Hadoop

 

This guide is for them who our following our previous guide to install Apache Hadoop on Ubuntu single cloud server and want to install Apache Spark on the same server. You are not applying the above standalone method with it. We can divide the work in to :

  1. Installing Scala
  2. Installing Spark
  3. Basic configuration and testing

We are brutally writing the steps without any explanation. Here is Scala :

Vim
1
2
http://www.scala-lang.org/files/archive/
http://apache.mirrors.ionfish.org/spark/

Vim
1
2
3
4
5
6
7
8
9
10
11
12
sudo apt-get remove scala-library scala
wget http://www.scala-lang.org/files/archive/scala-2.12.1.deb
sudo dpkg -i scala-2.12.1.deb
sudo apt-get update
sudo apt-get install scala
wget http://apache.mirrors.ionfish.org/spark/spark-2.1.0/spark-2.1.0-bin-hadoop2.7.tgz
tar -zxvf spark-2.1.0-bin-hadoop2.7.tgz
mv spark-2.1.0-bin-hadoop2.7 /usr/local/spark
wget http://dl.bintray.com/sbt/debian/sbt-0.13.9.deb
sudo dpkg -i sbt-0.13.9.deb
sudo apt-get update
sudo apt-get install sbt

Now, open ~/.bashrc :

Vim
1
nano ~/.bashrc

Add :

Vim
1
2
3
# SPARK START
export SPARK_HOME=/usr/local/spark
# SPARK END

then run :

Vim
1
source ~/.bashrc

Perform few steps :

Vim
1
2
3
4
cd $SPARK_HOME
./bin/spark-shell
# test
scala:> sc.parallelize(1 to 100).count()

We completed the steps. You have to repeat this process on all the nodes including namenode and datanodes.

Tagged With apache spark ubuntu 16 04 cloudera , how to install apache spark with hadoop on ubuntu , install spark with hadoop on ubuntu , paperuri:(26f9c8b5e18adb438bcd91b4560bee3f) , setup spark hadoop setup in ubuntu , spark install , ubuntu solr spark hadoop
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Install Apache Spark on Ubuntu Single Cloud Server With Hadoop

  • Install Apache Hadoop on Ubuntu on Single Cloud Server Instance

    Here is How Install Apache Hadoop on Ubuntu on Single Cloud Server Instance in Stand-Alone Mode With Minimum System Requirement and Commands.

  • Installing Local Data Lake on Ubuntu Server : Part 1

    Here is Part 1 of Installing Local Data Lake on Ubuntu Server With Hadoop, Spark, Thriftserver, Jupyter etc To Build a Prediction System.

  • Install Apache Zeppelin On Ubuntu 16.04

    Zeppelin Can Be Pre-Built Package Or Can Be Build From Source. Here Is How To Install Apache Zeppelin On Ubuntu 16.04 Building From Source.

  • Install Elastic Stack on Ubuntu 16.04, CentOS 7 Single Cloud Server

    Here is How to Install Elastic Stack on Ubuntu 16.04, CentOS 7 on Single Cloud Server Instance For Server Log Analysis, Big Data Processing.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy