selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

hadoop logo

Self-host hadoop

rel/release-3.5.0

Distributed storage and compute for large data clusters

ReleaseOpen SourceApache-2.0
Updated3 weeks ago
LanguageJava
Setup difficultyAdvanced
Stars
15 712
Ports
9870 (NameNode web interface (HTTP)), 8088 (ResourceManager web interface (HTTP)), 19888 (MapReduce JobHistory Server web interface (HTTP))
Docker
apache/hadoop
Install with Linux

What is hadoop?

Apache Hadoop is the Apache Software Foundation's open-source toolkit for running data-heavy work across racks of ordinary servers. HDFS keeps large files spread over the cluster and serves them at high throughput, YARN hands out cluster resources and schedules applications, MapReduce executes parallel batch jobs on top of YARN, and Hadoop Common holds the shared utilities. Installations range from one Java process for debugging, through a pseudo-distributed node where each daemon gets its own process, to a full multi-node setup with dedicated master hosts for the NameNode and ResourceManager plus workers running DataNode and NodeManager. You tune behaviour in the XML files beneath etc/hadoop and in hadoop-env.sh, format the filesystem once, then start and stop services with the scripts in sbin. HDFS can also be reached over HTTP through the WebHDFS REST API, the NameNode, ResourceManager and JobHistory Server each publish a browser dashboard, and turning on secure mode puts Kerberos in front of every service and user. Releases ship as source and binary tarballs from Apache mirrors; the guides assume GNU/Linux with a Java runtime and ssh trust between hosts, and they deliberately leave Kerberos wiring, high availability and rack awareness as your own production work.

Should you self-host hadoop?

hadoop scores 76/100 on selfhost.directory (how scoring works) and ranks #1 of 1 in Distributed Systems. It has 15 712 GitHub stars, +31 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Java.

Features

  • Application-layer fault tolerance
  • Daemon web dashboards
  • Distributed file system (HDFS)
  • Horizontal scaling from one server to thousands
  • Job scheduling and cluster resource management (YARN)
  • Kerberos-based secure mode
  • Log Aggregation
  • MapReduce batch processing
  • Node health monitoring
  • Rack-aware placement
  • Standalone, pseudo-distributed and fully-distributed modes
  • User impersonation (proxy users)
  • WebHDFS REST API

hadoop README

For the latest information about Hadoop, please visit our website at:

   http://hadoop.apache.org/

and our wiki, at:

   https://cwiki.apache.org/confluence/display/HADOOP/

How to install hadoop

Install hadoop with Linux

Java
Environment variables
JAVA_HOME, HADOOP_HOME, HADOOP_PID_DIR, HADOOP_LOG_DIR, HADOOP_HEAPSIZE_MAX

Download

To get a Hadoop distribution, download a recent stable release from one of the Apache Download Mirrors.

Prepare to Start the Hadoop Cluster

Unpack the downloaded Hadoop distribution. In the distribution, edit the file etc/hadoop/hadoop-env.sh to define some parameters as follows:

  # set to the root of your Java installation
  export JAVA_HOME=/usr/java/latest

GNU/Linux is supported as a development and production platform; daemons are started with bin/hdfs, bin/yarn and bin/mapred, or the sbin/start-dfs.sh and sbin/start-yarn.sh helper scripts.

How to configure hadoop

  • fs.defaultFSNameNode URIhdfs://host:port/
  • io.file.buffer.size131072Size of read/write buffer used in SequenceFiles.
  • dfs.namenode.name.dirPath on the local filesystem where the NameNode stores the namespace and transactions logs persistently.If this is a comma-delimited list of directories then the name table is replicated in all of the directories, for redundancy.
  • dfs.hostsList of permitted/excluded DataNodes.If necessary, use these files to control the list of allowable datanodes.
  • dfs.blocksize268435456HDFS blocksize of 256MB for large file-systems.

More in Distributed Systems

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…