Professional Documents
Culture Documents
14 - MahoutExercise
14 - MahoutExercise
Recommender
In
this
exercise
you
will
use
Mahout
to
generate
movie
recommendations
for
users.
1.
Ensure
that
you
completed
the
Sqoop
Hands-‐On
Exercise
to
import
the
movie
and
movierating
data.
2.
Create
a
list
of
users
for
whom
you
want
to
generate
recommendations,
by
creating
and
editing
a
file
on
your
local
disk
named
users.
Into
that
file,
on
separate
lines
place
the
user
IDs
6037,
6038,
6039,
6040,
so
that
the
file
looks
like
this:
6037
6038
6039
6040
Important:
Make
sure
there
is
not
a
blank
line
at
the
end
of
the
file.
The
line
containing
the
last
user
ID
should
not
have
a
carriage
return
at
the
end
of
that
line.
If
it
does,
the
job
will
fail.
5.
This
will
take
a
long
time
to
execute;
it
runs
approximately
10
MapReduce
jobs.
Your
instructor
will
now
continue
with
the
notes,
but
when
the
final
job
is