• 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 » Installing Local Data Lake on Ubuntu Server : Part 2

By Abhishek Ghosh March 7, 2017 7:24 am Updated on March 16, 2017

Installing Local Data Lake on Ubuntu Server : Part 2

Advertisement

Here is 2nd Part of Installing Local Data Lake on Ubuntu Server For Prediction System. In this guide, we will prepare to process data by Machine learning or Business Intelligence (BI) tool. Reader must follow the 1st part of this series in order to be able to understand this guide. Please adjust version number, path, username, password mentioned in this guide.

 

Installing Local Data Lake on Ubuntu Server : Understanding The Structure

 

Here is an overview of a typical Data Lake Architecture for prediction system :

Installing Local Data Lake on Ubuntu Server Part 2

 

Installing Local Data Lake on Ubuntu Server

 

This guide compatible data can be downloaded to Local Data Lake from Github Repo :

Advertisement

---

Vim
1
https://github.com/AbhishekGhosh/pyspark

Run these commands :

Vim
1
2
3
cd ~/tutorials/pyspark
git pull
ipython notebook

select data-flows.ipynb. Next we need to

Vim
1
2
3
4
5
6
7
8
9
10
11
#! mysql -u hiveuser -phivepassword -D retail_db -e "DROP DATABASE retail_db" > /dev/null
 
import pymysql
 
db = pymysql.connect(host="localhost", user='hiveuser', password='hivepassword')
cur = db.cursor()
cur.execute("CREATE DATABASE retail_db")
cur.execute("USE retail_db")
cur.execute(open("dump.sql").read())
cur.close()
db.close()

and :

Vim
1
2
3
4
5
6
7
8
import pandas as pd
 
db = pymysql.connect(host="localhost", user='hiveuser', password='hivepassword', db="retail_db")
print pd.read_sql("SHOW TABLES", db)
 
print pd.read_sql("DESCRIBE customers", db)
 
print pd.read_sql("SELECT * FROM customers LIMIT 5", db)

Check for output. On GitHub, you’ll get the full guide :

Vim
1
https://github.com/AbhishekGhosh/pyspark/blob/master/data-flows.ipynb

You’ll get Data Sets to build Prediction system here :

Vim
1
https://archive.ics.uci.edu/ml/datasets.html

We need to wget :

Vim
1
2
3
4
5
wget https://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/processed.cleveland.data
wget https://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/processed.hungarian.data
wget https://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/processed.switzerland.data
wget https://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/processed.va.data
ls processed.*.data

As example, if you import the heart disease from there, you can follow this guide to build a prediction system :

Vim
1
http://nasdag.github.io/blog/2016/01/02/predicting-heart-disease-with-hadoop-spark-and-python/

There is no difference with our whole series of this tutorial with our guide except the matter – we have more recent version compatible and guides are distributed in to many guides. This is quite basic example of how we can use the data and process by the system. If you want to make it a realtime prediction system, it will become more complex and will need a dedicated server. Basic principle will however remains the same.

Tagged With ubuntu , data lake reference architecture
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 Installing Local Data Lake on Ubuntu Server : Part 2

  • Approaches of Deep Learning : Part 1

    From This Series on Approaches of Deep Learning We Will Learn Minimum Theories Around AI, Machine Learning, Natural Language Processing and Of Course, Deep Learning Itself.

  • What is Data Lake in Big Data?

    A data lake comprises of multiple repositories providing data to an organisation for analytical processing including analytics & reporting.

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Lake Quincy Media : Our One Year with Leading Developer Ad Network

    Lake Quincy Media is sponsoring us for the past one year. How is our experience with the Leading Developer Ad Network?

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