Coder Social home page Coder Social logo

bigdata_mapreduce_mongo's Introduction

๐Ÿ“˜

Big Data Playground

Prepared Course Material for Survey of Database Systems, on a quick runthrough of Big Data concepts using MongoDB (a NoSQL database) and Hive (an OLAP SQL access tool)

Instructions

First, make sure to have Docker installed (based on your operating system). Install is through here! After you have Docker installed, make sure it's running fine by issuing the commands docker -v and docker-compose -v

Docker will then handle spinning up services and filling up databases with data for us!

The manual way

After, cd into the folder where this project is under. Simply run docker-compose up and it will spin up the containers for you automagically!

You can graphically access the contents of the MongoDB database on <localhost|dockerport>:8081

  • To access Hive and execute SQL commands, run:

    1. docker exec -i -t hive bash, which allows us to access the Hive Docker container's shell

    2. hive -f /hive_init/init.sql, which runs the initialization SQL script (which creates the databases, tables and loads the CSV data of our databases). For fun, check out the hive/hive_init.sql file in this repository for more information

    3. hive, which then opens up the Hive CLI from within the Hive Docker container

    4. Run whatever SQL you want to execute and see the outputs!

  • To access MongoDB and execute MongoDB queries:

    1. docker exec -i -t mongo bash, which allows us to access the MongoDB Docker container's shell

    2. chmod +x /mongo_init/stripCRonefile.sh && ./mongo_init/stripCRonefile.sh, which runs the shell script that fixes the Windows problem of file endings for us. On the prompt, provide the filename /mongo_init/init.sh

    3. chmod +x /mongo_init/init.sh && ./mongo_init/init.sh, which runs the initialization shell script (creates the MongoDB databases, collections and loads the JSON data of our databases). For fun, check out the mongo/init.sh file in this repository for more information

    4. Go to your browser, navigate to <localhost|dockerport>:8081

    5. See your data and execute queries as you please

bigdata_mapreduce_mongo's People

Contributors

alastairparagas avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.