Skip to content

About

A portable cluster of Raspberry Pi computers.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

133 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started · Cluster Guide · Troubleshooting · About

Raspberry Pi Cluster

A step-by-step guide to building a portable cluster of five Raspberry Pi 5 or Raspberry Pi 4 boards that stores data with Hadoop (HDFS) and trains machine learning models in parallel with Spark.

Illustration of the cluster: five Raspberry Pi boards (Raspberry Pi 5 with Active Coolers shown) stacked in a case, master on top and four workers below, each wired to a network switch that connects to the router and the internet.

What is a Raspberry Pi?

A Raspberry Pi is a credit-card-sized, low-cost computer board. It can do most of what a desktop computer does: browse the internet, play video, edit documents and spreadsheets, or run a server.

The Raspberry Pi 5, the newest model, comes with 1 to 16 GB of memory (RAM), and the Raspberry Pi 4 Model B with 1 to 8 GB, so for many tasks it's hard to tell apart from a regular computer.

The main difference is the central processing unit (CPU). Desktop and laptop processors mostly use the x86 architecture, made by Intel and AMD. The Raspberry Pi uses an ARM processor, the same family found in most phones.

Each architecture has its own instruction set, so software must be built for the one it runs on: a program built for x86 won't run on ARM. That's why the guide downloads ARM (aarch64) builds of Hadoop and uses Raspberry Pi OS, which is built for the Pi.

For other things to do with a Raspberry Pi, see the Raspberry Pi Foundation's projects site.

Status

First built in 2020 on five Raspberry Pi 4 boards, with Hadoop and Spark working. The 2026 update adds the Raspberry Pi 5 and current software, but hasn't been built on hardware yet. Builds has the details and photos of the original build.

Photo of the original 2020 cluster: five Raspberry Pi 4 boards stacked on a network switch, powered on and wired up.

Built it with these steps? Please open an issue with your boards, RAM, OS image date and benchmark time, or if a step didn't work for you.

Acknowledgements

Many thanks to the tutorials this guide builds on. I don't claim the whole guide as my own: it's what worked for me after following others and adding to them.

See References for the sources and resources I used.

About

A portable cluster of Raspberry Pi computers.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Contributors

Languages