2017/03/09

Cloudera Hadoop Tutorial - Retail DB Installation

The Cloudera getting started tutorial requires "retail_db" mysql database for learning the concepts.  
If you are using the "Cloudera QuickStartVM" then you are fine.  But if you have setup the Hadoop Cluster manually, like me, you will find that the "retail_db" mysql database missing.

This post is for detailing how to install the "retail_db" mysql database.

1.  Download the attached "retail_db" script.
Retail_db MySQL database

Or this can also be downloaded from command prompt using the command
2.  Login to MySQL as below:

3.  Create a database "retail_db" and a database user as below:
4. Grant all permissions to the user "retail_dba" and populate the database using the script downloaded in step 1.
5.  After successful completion of loading script, verity the tables as below:

This will give a sample database in MySQL to complete the Cloudera tutorial.

9 comments:

  1. Cool! That was really helpful. I don't use VM and prefer to use my own setup on my laptop. Thanks!

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. It was really a nice post and i was really impressed by reading this Big Data Hadoop Online Training

    ReplyDelete
  4. This was an excellent post. This blog was really comprehensive and helpful to me. Thanks for sharing.
    This was an excellent post. This blog was really comprehensive and helpful to me. Thanks for sharing.
    keep sharing more details.
    C and C++ Training Institute in chennai | C and C++ Training Institute in anna nagar | C and C++ Training Institute in omr | C and C++ Training Institute in porur | C and C++ Training Institute in tambaram | C and C++ Training Institute in velachery

    ReplyDelete
  5. Alguien me podria ayudar indicandome cuantos registros tiene la tabla productos?

    ReplyDelete
  6. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. Retail Courses

    ReplyDelete

File Handling with Python

This little utility is for copying files from source to target directories.  On the way it checks whether a directory exists in the target, ...