{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"toc_visible": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github"
},
"source": [
""
]
},
{
"cell_type": "markdown",
"source": [
"\n",
"\n",
"# Hadoop MiniCluster\n",
"
\n",
"
\n",
"\n",
"The Hadoop MiniCluster is a lightweight, single-node Hadoop cluster that is primarily used for testing and development purposes. It provides a way to simulate a distributed Hadoop environment on a single machine, allowing developers to experiment with and test their Hadoop applications without the need for a full-scale, multi-node cluster.\n",
"\n",
"Quote from [the official Hadoop documentation](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/CLIMiniCluster.html):\n",
"\n",
"\n",
"> *Using the CLI MiniCluster, users can simply start and stop a single-node Hadoop cluster with a single command, and without the need to set any environment variables or manage configuration files. The CLI MiniCluster starts both a YARN/MapReduce & HDFS clusters.*\n",
"\n",
"\n",
"In this notebook we download the Hadoop core and guide you through the steps required to launch the MiniCluster."
],
"metadata": {
"id": "OFLizmmFvTjK"
}
},
{
"cell_type": "code",
"source": [
"# @title\n",
"from IPython.core.display import HTML\n",
"HTML(\"\"\"\n",
"
\n",
"In the realm of networks, where processes twine,
\n",
"A command
unfolds, a symphony of lines.
\n",
"\"Lsof,\" it whispers, with a mystic hum,
\n",
"A dance of flags, each one has its own drum.
\n",
"
\n",
"\"-n -i -P
,\" the conductor commands,
\n",
"Navigate swiftly, across distant lands.
\n",
"\"+c0
\" echoes softly, a chorus of glee,
\n",
"Embrace all processes, as far as eyes can see.
\n",
"
\n",
"\"-sTCP:LISTEN
,\" a stanza profound,
\n",
"Seeking the echoes of ports, a network's sound.
\n",
"Processes in repose, in a state so keen,
\n",
"A tapestry of LISTEN, a poetic scene.
\n",
"
\n",
"In the realm of networks, where processes twine,
\n",
"A command
unfolds, a symphony of lines.
\n",
"\"Lsof,\" it whispers, with a mystic hum,
\n",
"A dance of flags, each one has its own drum.
\n",
"
\n",
"\"-n -i -P
,\" the conductor commands,
\n",
"Navigate swiftly, across distant lands.
\n",
"\"+c0
\" echoes softly, a chorus of glee,
\n",
"Embrace all processes, as far as eyes can see.
\n",
"
\n",
"\"-sTCP:LISTEN
,\" a stanza profound,
\n",
"Seeking the echoes of ports, a network's sound.
\n",
"Processes in repose, in a state so keen,
\n",
"A tapestry of LISTEN, a poetic scene.
\n",
"