%ex2.1

\begin{enumerate}[label=(\alph*)]
	\item\textbf{Write a MapReduce job which takes as input the checkout records and
		computes the following:\\
		For each author, list the title that was checked out (borrowed) the most}\\	

	Compile and run:
	\begin{verbatim}rsync -vaPp --delete ~/gitstuff/adbs/ex2/mapreduce/ \
	    e726236f@lbd.zserv.tuwien.ac.at:mapreduce/; \
	ssh -t e726236f@lbd.zserv.tuwien.ac.at "cd mapreduce; ./build_run.sh '_ex1a' \
	    '/user/adbs/2019S/shared/seattle-checkouts-by-title/checkouts-by-title.csv'"
	\end{verbatim}
	
	Results:\\	
	http://localhost:19888/jobhistory/job/job\_1557406089646\_5204\\
	Tasks:
	Map: 53\\
	Reduce: 1\\
	HDFS: Number of bytes read: 7118531360\\
	HDFS: Number of bytes written: 28695222\\
	Map input records: 32723546\\
	Reduce output records: 324418\\
	
	\item\textbf{Write a MapReduce job which takes as input both the library inventory
		and the checkout records and computes the following:\\
		For each author, list the title that was checked out (borrowed) the most}\\
	
	Compile and run:
	\begin{verbatim}rsync -vaPp --delete ~/gitstuff/adbs/ex2/mapreduce/ \
	    e726236f@lbd.zserv.tuwien.ac.at:mapreduce/; \
	ssh -t e726236f@lbd.zserv.tuwien.ac.at "cd mapreduce; ./build_run.sh '_ex2a' \
	    '/user/adbs/2019S/shared/seattle-checkouts-by-title/checkouts-by-title.csv' \
	    '/user/adbs/2019S/shared/seattle-library-collection-inventory/library-collection-inventory.csv'"
	\end{verbatim}
	
	Results:\\	
	http://localhost:19888/jobhistory/job/job\_1557406089646\_5309\\
	Map: 109\\
	Reduce: 1\\
	HDFS: Number of bytes read: 14621528936\\
	HDFS: Number of bytes written: 52724095\\
	Map input records: 55563180\\
	Reduce output records: 183399\\
\end{enumerate}
