An open API service indexing awesome lists of open source software.

https://github.com/mongodb/m001


https://github.com/mongodb/m001

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

Overview
========

Here you will find instructions for importing the datasets for `M001: MongoDB Basics `_ into a locally running MongoDB deployment.

Datasets
========

All datasets are provided in Amazon S3 in a single zip file (243 MB zipped; 1.5 GB unzipped). The files were created with the `mongodump `_ command. They may be imported into your MongoDB deployment using `mongorestore `_. Note that these datasets include the indexes necessary to support example queries and labs used in M001. The datasets included are as follows.

- **100YWeatherSmall** (403 MB) - readings from weather stations throughout the world.
- **city** (3.2 MB) - geospatial representations of neighborhoods in New York City.
- **citibike** (835 MB) - details for trips taken using `Citibikes `_.
- **ships** (3.6 MB) - data on shipwrecks around the world, including geospatial coordinates.
- **video** (303 MB) - summary data on movies.

Importing Data Locally
======================

These instructions will help you load the M001 datasets into a local MongoDB instance (e.g., MongoDB running on your laptop). Note: this will require approximately 2.5 GB of RAM.

1. Download the `m001-datasets.zip `_ file from S3.

2. Unzip ``m001-datasets.zip``. This will create a directory/folder called ``dump``.

3. Ensure you have a running MongoDB instance. For instructions on installation and setup, see the `MongoDB installation documentation `_. Installation tutorials for all platforms include instructions for running MongoDB (the mongod daemon).

4. Once you have a ``mongod`` instance running, you may import the datasets using `mongorestore `_.

a. Open a command shell (e.g., bash, powershell, or cmd).
b. Change directory (e.g., ``cd``) to where you unzipped ``m001-datasets.zip``.
c. Assuming you are running ``mongod`` on the default port, you may import the datasets from the dump directory by simply running, ``mongorestore``. ``mongorestore`` looks for a directory called ``dump`` to import.