Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 4.44 KB

dat250-expass3.md

File metadata and controls

49 lines (39 loc) · 4.44 KB

DAT250: Software Technology Experiment Assignment 3

Installation and Verification

First I did the Verify Integrity of MongoDB Packages tutorial. It went fine and had little to no complaints. I used the PGP/GPG key to check the validation of the MongoDB package. When I did step 4 Verify the MongoDB installation file I got the right response which is (I copied these from the tutorial because I got the same message, only some numbers switched out)

gpg: Signature made Wed Jun 5 03:17:20 2019 EDT
gpg: using RSA key 4B7C549A058F8B6B " [unknown]


However, also got the following message:

gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: E162 F504 A20C DF15 827F 718D 4B7C 549A 058F 8B6B



Which got me kind of confused, because the tutorial says if you get that message, you have the package signed but do not currently trust the signing key in your local trustdb. It didnt say how to fix it so I didnt really do anything about it. Sadly I did not take screenshots of it, becauase I didnt see that we had to before the end of the assignment. So when I tried to run the command in terminal again today (five days later after the first time I did) I just got this message

gpg: fant ingen gyldig OpenPGP-data.
gpg: klarte ikke å bekrefte signatur.
Husk at signaturfil (.sig eller .asc)
skal være første filargument på kommandolinja.

Which was kind of annoying because I had already done all of it, and got confirmation the package was signed. And running mongosh on terminal is working so the package is properly installed. To install mongosh I used homebrew. mongosh1

Experiment 1: MongoDB CRUD operations

Insert

CRUD1

Query

crud2

Update

CRUD3

CRUD3_1

Remove

CRUD4

crud4_1

Bulk-write

CRUD5

Experiment 2: Aggregation

Map Reduce and Aggregation

CRUD6_4


Additional Operation

ADDITIONALOPERATION

So when using MapReduce for the additional operation, I got a warning. So I changed to aggregation instead. I didnt get those warnings when doing MapReduce first so I was confused for what happened there. The idea behind the function is to get the customer ID and the order date. Then you can see which customers ordered something on a date. The purpose is to maybe see what day of the week customers buy the most!

Pending Issues and Final Notes

All in all I liked this assignment, the tutorial was descriptive and easy to follow. Pending issues may be that suddenly MapReduce didnt work and I had to swtch to aggregation, which was weird when it worked fine the other day. I did the additional operation two days later than the first assignments so maybe I forgot to type in something. And I have also learned I have to read the entire assignment before starting it. If I had read it all the way through I would have gotten my screenshots of the verification...