[DOCS-7361] Comment on: "primer/tutorial/install-mongodb-on-ubuntu.txt" Created: 08/Mar/16  Updated: 08/Dec/16  Resolved: 05/Apr/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Allison Reinheimer Moore
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux Ubuntu

Location: https://docs.mongodb.org/getting-started/shell/tutorial/install-mongodb-on-ubuntu/
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
Referrer: https://docs.mongodb.org/getting-started/shell/tutorial/install-on-linux/
Screen Resolution: 1600 x 900
repo: docs
source: tutorial/install-mongodb-on-ubuntu


Participants:
Days since reply: 7 years, 45 weeks, 1 day ago

 Description   

Hello
I follow the tutorial and there is a little inaccuracy.

You give the following url for the dataset to import:
https://raw.githubusercontent.com/mongodb/docs-assets/primer-dataset/dataset.json

...but the command line to import it is:
mongoimport --db test --collection restaurants --drop --file primer-dataset.json

the file primer-dataset doesn't exist.

Thanks to correct



 Comments   
Comment by Allison Reinheimer Moore [ 05/Apr/16 ]

We've updated the name of the source file to primer-dataset.json, so if one downloads it without specifying a filename, it'll default to primer-dataset.json. Thanks!

Comment by Allison Reinheimer Moore [ 08/Mar/16 ]

Hi Samuel,

The download step in the import data tutorial does specify that you should save the dataset to a file called primer-dataset.json. If you do that, then the mongoimport invocation will work.

That said, I have always thought that it's a bit odd that the file is called dataset.json, and that we then tell you to change its name. I'll confer with colleagues to see if there's a reason we're doing it this way, and – if not – update accordingly.

Thanks!
Allison

Generated at Thu Feb 08 07:54:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.