Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Access the dataset for this assignment, city _ inspections.json, in the / usr / local / datasets directory in your Apporto environment. Using the mongoimport
Access the dataset for this assignment, cityinspections.json, in the usrlocaldatasets directory in your Apporto environment. Using the mongoimport tool and documents found in the cityinspections.json file, load the database city into the inspections collection. Complete this task by typing the following commands in the Linux terminal to perform the import in the right directory:
Change into the Apporto directory with the data sets:
cd usrlocaldatasets
Use the mongo import utility to load the data set:
mongoimport username$MONGOUSER
password$MONGOPASSport$MONGOPORT
host$MONGOHOSTdb city collection inspections
authenticationDatabase admin drop cityinspections.json
Tip: In any Linux systems, commands must be exact and use proper syntax and case sensitivity
Verify your load by using the city database, and issuing the following queries in the mongo shell:
dbinspections.findid : ENFO"
dbinspections.findresult:"Out of Business"businessname":limit
Provide screenshots of the results as evidence.
Using the appropriate commands in the mongo shell, insert a document to the database named city within the collection named inspections Use the following keyvalue pairs as data for your document.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started