Coursera 笔记

Module 04 · Final Project: Working with NoSQL Databases

Final Project Overview最终项目概述

Coursera ↗

Estimated time needed: 45 minutes
预计所需时间:45 分钟

In this final project, you will use your new MongoDB and Cassandra skills to move data from one database type to another and run basic queries.
在这个最终项目中,你将运用你新学的 MongoDB 和 Cassandra 技能,将数据从一个数据库类型迁移到另一个数据库类型,并运行基本查询。

Objectives 目标

Successful completion of this project demonstrates your ability to perform the following tasks:
成功完成这个项目将展示你能够执行以下任务的能力:

  • Import and export data in MongoDB
    在 MongoDB 中导入和导出数据
  • Query data in MongoDB  在 MongoDB 中查询数据
  • Import and export data in Cassandra
    在 Cassandra 中导入和导出数据
  • Query data in Cassandra  在 Cassandra 中查询数据

Review Criteria: 10 points total 评审标准:总分 10 分

MongoDB

  1. Import movies.json into the MongoDB server into an entertainment database and a movie collection. 1 point
    将 movies.json 导入 MongoDB 服务器到娱乐数据库和电影集合中。1 分
  2. Write a MongoDB query to find the year most movies were released. 1 point
    编写一个 MongoDB 查询来查找电影发行年份最多的年份。1 分
  3. Write a MongoDB query to find the count of movies released after the year 1999. 1 point
    编写一个 MongoDB 查询来查找 1999 年后发行的电影数量。1 分
  4. Write a query to determine the average votes for movies released in 2007. 1 point
    编写一个查询来确定 2007 年发行电影的平均评分。1 分
  5. Export selected fields from the movies collection into a file named partial_data.csv. 1 point
    将电影集合中的选定字段导出到名为 partial_data.csv 的文件中。1 分

Cassandra

  1. Create a keyspace named entertainment. 1 point
    创建一个名为 entertainment 的键空间。1 分
  2. Import partial_data.csv into a Cassandra server. 1 point
    将 partial_data.csv 导入 Cassandra 服务器。1 分
  3. Write a CQL query to count the movie table's rows. 1 point
    编写一个 CQL 查询来统计 movie 表的行数。1 分
  4. Create an index for the movie table's rating column using CQL. 1 point
    使用 CQL 为电影表的评分列创建索引。1 分
  5. Write a CQL query to count the number of movies that are rated "G." 1 point
    编写一个 CQL 查询来统计评分为"G"的电影数量。1 分