Skip to main content

Hadoop cluster (Google Cloud Dataproc)

What it is

For the Module 4 labs we use a shared Hadoop cluster on Google Cloud Dataproc: one master node and four worker nodes. It has everything the labs need already installed:

  • HDFS (distributed storage) and YARN (resource management)
  • MapReduce, including Hadoop Streaming for Python mappers and reducers
  • Hive (SQL on Hadoop)
  • PySpark
  • JupyterLab, which you open in your browser

You don’t install anything on your own computer for these labs; a web browser is enough.

Getting access

  1. On Day 1, give the instructors the email address of your Google account (for example a Gmail address). We use it to give you access to the cluster.
  2. On lab day, sign in to Google with that same account.
  3. Open the link to the cluster shared in class and go to its Web interfaces tab. From there you can open JupyterLab and the Hadoop web pages (HDFS, YARN).

Your folder

Everyone has their own folder in HDFS: /user/<name>, where <name> is the part of your email address before the @, in lower case, with dots and hyphens replaced by underscores.

Your Google account Your HDFS folder
Jean.Dupont@… /user/jean_dupont
awa-diallo@… /user/awa_diallo

Rules for the shared cluster

ImportantEveryone shares this cluster
  • JupyterLab is shared by everyone. Work only inside your own folder.
  • Never delete or change other people’s files.
  • When you finish, shut down your notebook kernel (Kernel → Shut Down Kernel), so the cluster stays fast for everyone.

Lab instructions

The step-by-step instructions for each lab are handed out in class.