Book Image

Hands-On Big Data Modeling

By : James Lee, Tao Wei, Suresh Kumar Mukhiya
Book Image

Hands-On Big Data Modeling

By: James Lee, Tao Wei, Suresh Kumar Mukhiya

Overview of this book

Modeling and managing data is a central focus of all big data projects. In fact, a database is considered to be effective only if you have a logical and sophisticated data model. This book will help you develop practical skills in modeling your own big data projects and improve the performance of analytical queries for your specific business requirements. To start with, you’ll get a quick introduction to big data and understand the different data modeling and data management platforms for big data. Then you’ll work with structured and semi-structured data with the help of real-life examples. Once you’ve got to grips with the basics, you’ll use the SQL Developer Data Modeler to create your own data models containing different file types such as CSV, XML, and JSON. You’ll also learn to create graph data models and explore data modeling with streaming data using real-world datasets. By the end of this book, you’ll be able to design and develop efficient data models for varying data sizes easily and efficiently.
Table of Contents (17 chapters)

Setting up big data modeling platforms

In this section, we are going to set up Cloudera VM on both Windows and macOS. We are going to use this VM for most of the exercises in this book.

Getting started on Windows

We are going to install Cloudera virtual machine (VM) in our system to get started with big data modeling. Follow these instructions to download and install the Cloudera Quickstart VM with VirtualBox on Windows:

  1. Download the software from https://www.virtualbox.org/wiki/Downloads. Once the download is complete, install the downloaded VirtualBox software on your computer.
  2. Download the Cloudera VM from https://downloads.cloudera.com/demo_vm/virtualbox/cloudera-quickstart-vm-5.4.2-0-virtualbox.zip. The VM is over 4 GB. It will take some time to download the software.
  3. Right-click Cloudera-quickstart-vm-5.4.2-0-virtualbox.zip and choose Extract All….
  4. Start the VirtualBox.
  5. Import the VM by going to File | Import Appliance...:
  1. Click the folder icon, select cloudera-quickstart-vm-5.4.2-0-virtualbox.ovf from the folder where you unzipped the VirtualBox VM, and click Open. The following screenshot is provided for assistance:
  2. Click Next to proceed, and then click Import, as shown in the following screenshot:

  1. The VM image will be imported. As this is a big file, it can take some time:
  1. When the import is finished, launch the Cloudera VM. cloudera-quickstart-vm-5.4.2-0 VM will appear on the left in the VirtualBox window. Select the machine and click the Start button to initiate the VM:
  1. It takes several minutes for Cloudera VM booting to start up initially. It takes a long time, since many Hadoop tools are loaded and started at this booting process:

  1. Once the booting process is finished, you will see the Cloudera VM desktop on the screen:

Getting started on macOS

Setting up the Cloudera VM on a Mac is very similar to setting it up on Windows. If you have macOS, we can set up the Cloudera Quickstart VM with VirtualBox on macOS. Perform the following steps:

  1. Go to https://www.virtualbox.org/wiki/Downloads and download the virtual box. Once downloaded, install VirtualBox in macOS.
  2. Download the Cloudera VM from https://downloads.cloudera.com/demo_vm/virtualbox/cloudera-quickstart-vm-5.4.2-0-virtualbox.zip. The VM is over 4 GB, so it will take some time to download.
  1. Unzip the Cloudera VM. You can do this by double-clicking on the cloudera-quickstart-vm-5.4.2-0-virtualbox.zip folder.
  2. Start the VirtualBox and begin importing. We can import the VM by going to File | Import Appliance.
  3. Click the Folder icon, select cloudera-quickstart-vm-5.4.2-0-virtualbox.ovf from the folder where you unzipped the VirtualBox VM, and click Open:
  1. Click Continue to proceed:
  1. Click Import:

  1. The VM image will be imported. As this is a big file, it can take some time:

  1. When the import is finished, launch the Cloudera VM. cloudera-quickstart-vm-5.4.2-0 VM will appear on the left in the VirtualBox window. Select the machine and click the Start button to initiate the VM:

  1. It takes several minutes for Cloudera VM booting to start up initially. It takes a long time, since many Hadoop tools are loaded and started during this booting process:

  1. Once the booting process is finished, you will see the Cloudera VM desktop on the screen: