Skip to content
 
 

Repository files navigation

PreLab

Windows users:

  • We install it on windows using the MSI version (https://www.mongodb.com/try/download/community?tck=docs_server), cutomize the installation to "c:/mongodb"

  • Add the "data/db" and "logs"" dirs into the installation directory which you already customized.

  • From the CMD "As administrator", configure the logs and databases directories, and start the mongoDB service:

    • from the "bin "directory run the following command>>> mongod --directorydb --dpath c:\mongodb\data\db --logpath c:\mongodb\log\mongo.log --logappend --rest --install
  • Now we can run the mongodb service

    • net start mongodb
  • Putting your mongoDBHome/bin to the enviroment variables Paths:

    • so you can run the Shell of MongoDb using the command '>mongo'

Linux users (ubuntu):

  • Follow the instructions in this tutourial to install MongoDB 4.4 Community Edition on LTS (long-term support) releases of Ubuntu Linux using the apt package manager.
  • Genrally Speaking, you can also follow this link to install MongoDB Community Edition for supported Linux systems.

Docker users

Simply clone the repository and run

docker-compose up

The following docker compose file will build the notebook container which includes all the required dependencies. Services are also exposed to the host network so you can connect to the via localhost.

Open Jupyter

version: "3"

services:
  mongo:
    image: mongo
    ports:
        - 27017:27017
        - 27018:27018
    restart: always
    environment:
      MONGO_INITDB_ROOT_USERNAME: 
      MONGO_INITDB_ROOT_PASSWORD: 
  notebook:
    build: notebook/
    ports:
      - 8888:8888
    volumes:
       - ./:/home/jovyan/work/data
    environment:
      - GRANT_SUDO=yes

Good to know (MongoDB in the Cloud (Mongo-Atlas))

About

Repository fo Data Engineering Course

Resources

Stars

63 stars

Watchers

9 watching

Forks

Releases

Packages

Contributors

Languages