Navigation

Load Sample Data into Your Cluster

Prerequisites

To utilize the sample data provided by Atlas, you must create an Atlas cluster to load data into. See Create a Cluster for instructions.

Procedure

There are two ways in which you can load sample data into your Atlas cluster. You can either load sample data from the Clusters view or the Data Explorer.

Select the appropriate tab based on how you would like to load sample data:

To load sample data into your cluster from the Clusters view:

1
2

Open the Load Sample Dataset dialog.

  1. Locate the cluster where you want to load sample data.
  2. Click the Ellipses (…) button for your cluster.
  3. Click Load Sample Dataset.
3

In the dialog, click Load Sample Dataset

The dialog closes and Atlas begins loading your sample dataset into your cluster.

4

View your sample data.

To view your sample data by click your cluster’s Collections button. You should see the following databases in your cluster:

  • sample_airbnb
  • sample_geospatial
  • sample_mflix
  • sample_supplies
  • sample_training
  • sample_weatherdata

For details on the collections and documents included in these datasets, see Available Sample Datasets.

Important

You can only load sample data through the Data Explorer if you do not have any data already in your collection.

To load sample data into your cluster from the Data Explorer:

1

Navigate to your Clusters view.

In the left navigation pane in Atlas, click Clusters.

2

Open the Data Explorer.

  1. Locate the cluster where you want to load sample data.
  2. Click your cluster’s Collections button.
3

Click Load a Sample Dataset.

4

In the ensuing dialog, click Load Sample Dataset to confirm.

Once the load completes, the Data Explorer refreshes to show your sample data.

You should see the following databases in your cluster:

  • sample_airbnb
  • sample_geospatial
  • sample_mflix
  • sample_supplies
  • sample_training
  • sample_weatherdata

For details on the collections and documents included in these datasets, see Available Sample Datasets.

Sample Data Namespaces

When you load the sample data, Atlas creates the following namespaces on your cluster:

Warning

If any of these namespaces already exist on your cluster when you attempt to load the sample data, the operation will fail and no sample data will be loaded into your cluster.

Database Collection
sample_airbnb listingsAndReviews
sample_geospatial shipwrecks
sample_mflix comments
sample_mflix movies
sample_mflix theaters
sample_mflix users
sample_supplies sales
sample_training companies
sample_training grades
sample_training inspections
sample_training posts
sample_training routes
sample_training stories
sample_training trips
sample_training tweets
sample_training zips
sample_weatherdata data