• 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

This Article Has Been Shared 402 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • WordPress XML-RPC Attack & Fake PHP5-FPM Error

    WordPress XML-RPC Attack Can Bring DDoS Resulting in Random 502 PHP5-FPM Errors on Nginx Server or Can Make the Database Down. Here is Fix.

  • Install Nginx HTTP/2 With ALPN on Ubuntu 14.04 From ondrej/nginx PPA

    In our previous guide, we have shown how to easily upgrade Nginx on Ubuntu 14.04 for HTTP/2 support. The required changes in the /etc/nginx/sites-enabled/default file, /etc/nginx/nginx.conf file and limitations of that way of installation has been discussed on this article. In this guide, we will show how to install Nginx HTTP/2 with ALPN on Ubuntu […]

  • What is Dark Data in Big Data?

    What is Dark Data? It is Big Data Collected, Processed & Stored For Need But Organization Fails to Use it For Direct of Indirect Monetizing.

  • Steps to Install NextCloud on Cloud Server (Nginx, Redis Cache)

    Here Are the Steps to Install NextCloud on Cloud Server With Nginx Server, Redis Cache, 2 FA, HTTPS. NextCloud is Like Your Own Dropbox.

  • Day to Day Commands For Server : Cloud Server Administration

    Here Are Useful, Regularly Updated Day to Day Commands For Server, This is Specially Written For Cloud Server Administration or VPS Instance.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021
  • What is Conway’s Law? January 14, 2021
  • Effects of Digitization on Companies : Part XIII January 13, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Install Apache Spark on Ubuntu Single Cloud Server With Hadoop," in The Customize Windows, January 22, 2017, January 18, 2021, https://thecustomizewindows.com/2017/01/install-apache-spark-on-ubuntu-single-cloud-server-with-hadoop/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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