• 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 599 Times!

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

  • 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

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

  • What is an Automatic Ethanol Fireplace February 8, 2023
  • Disadvantages of Cloud-Native Computing February 7, 2023
  • Projector Screen Basics February 6, 2023
  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023

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, February 9, 2023, https://thecustomizewindows.com/2017/01/install-apache-spark-on-ubuntu-single-cloud-server-with-hadoop/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT