![](https://csdnimg.cn/release/download_crawler_static/86291361/bg1.jpg)
C H A P T E R
10
Big Data
Solutions for the Pratie Exerises of Chapter 10
Pratie Exerises
10.1
Answer:
The key-value store, sine the distributed le system is designed to store a mod-
erate number of large les. With eah le blok being multiple megabytes,
kilobyte-sized les would result in a lot of wasted spae in eah blok and poor
storage per for mane.
10.2
Answer:
We would store the student data as a JSON objet, wit h the t akes tuples for
the student stored as a JSON ar ray of objets, eah objet or responding to a
single takes tuple. Give example ...
10.3
Answer:
Create a key by onatenating the ustomer ID and date (with date represented
in the form year/month/date, e.g., 2018/02/28) and store the reords indexed
on this key. Now the required reords an be retrieved by a range quer y.
10.4
Answer:
With the
map
funtion, output reords from both the input relations, using t he
join attr ibute value as the
redue
key. The
redue
funtion gets reords from
both relations with mathing join attr ibute values and outputs all mathing
pairs.
65
评论0