Skip to content

Checking your reading list…

Retry verification

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Deploy Cloudera CDH Single-Node on Docker: Complete Step-by-Step Guide
Big Data 7 min read

Deploy Cloudera CDH Single-Node on Docker: Complete Step-by-Step Guide

This tutorial walks through deploying a single-node Cloudera CDH cluster using Docker, covering pulling the 4.4GB QuickStart image, configuring container ports and time synchronization, starting Cloudera Manager, fixing NTP issues, and verifying HDFS WebUI access.

Overview

This guide documents the full process of installing a single-node Cloudera CDH (Cloudera Distribution for Hadoop) environment inside a Docker container. The base image is cloudera/quickstart (approximately 4.4 GB), which bundles the core Hadoop ecosystem components and Cloudera Manager.

1. Pull the Docker Image

docker pull cloudera/quickstart

The download may take a while; a proxy might be required if the pull stalls.

Docker pull progress
Docker pull progress

2. Verify the Image

docker images | grep cloud
Docker images list showing cloudera/quickstart
Docker images list showing cloudera/quickstart

3. Launch the Container

Run the container with privileged access, host networking for time sync, and a large set of port mappings to expose all CDH services:

docker run \
  --hostname=quickstart.cloudera \
  --privileged=true -t -i \
  -v /etc/localtime:/etc/localtime:ro \
  -p 8888:8888 -p 10000:10000 -p 10020:10020 -p 11000:11000 -p 18080:18080 \
  -p 18081:18081 -p 18088:18088 -p 19888:19888 -p 21000:21000 -p 21050:21050 \
  -p 2181:2181 -p 25000:25000 -p 25010:25010 -p 25020:25020 -p 50010:50010 \
  -p 50030:50030 -p 50060:50060 -p 50070:50070 -p 50075:50075 -p 50090:50090 \
  -p 60000:60000 -p 60010:60010 -p 60020:60020 -p 60030:60030 -p 7180:7180 \
  -p 7183:7183 -p 7187:7187 -p 80:80 -p 8020:8020 -p 8032:8032 -p 802:8042 \
  -p 8088:8088 -p 8983:8983 -p 9083:9083 \
  cloudera/quickstart /usr/bin/docker-quickstart

Note: The -v /etc/localtime:/etc/localtime:ro mount synchronizes the container clock with the host; it can be omitted if time drift is not a concern.

Container startup output
Container startup output

4. Enter the Container and Check Initial Services

# Find container ID
docker ps
# Enter container
docker exec -it container_id bash
# List Java processes
jps
jps output showing multiple Hadoop daemons
jps output showing multiple Hadoop daemons

Several components start automatically, but Cloudera Manager itself is not yet running.

5. Start Cloudera Manager

sudo /home/cloudera/cloudera-manager --express --force

Startup takes roughly 10 minutes. On success the terminal shows a confirmation message.

Cloudera Manager startup success
Cloudera Manager startup success

6. Configure Hostname Resolution on the Host

Exit the container and edit /etc/hosts on the Docker host so that the CDH Web UIs can resolve the internal hostname:

exit
sudo vi /etc/hosts

Add the line:

127.0.0.1 quickstart.cloudera

7. Access Cloudera Manager Web UI

Open http://127.0.0.1:7180/ in a browser. Default credentials are cloudera / cloudera.

Cloudera Manager login page
Cloudera Manager login page
Cloudera Manager dashboard after login
Cloudera Manager dashboard after login

8. Troubleshoot Time Synchronization (NTP)

After login the dashboard may show abnormal timestamps. Checking jps inside the container reveals many services stopped. In Cloudera Manager, the Hosts page indicates the Clock service is down, meaning the NTP daemon is not running.

jps showing stopped services
jps showing stopped services
Cloudera Manager Hosts page showing Clock service stopped
Cloudera Manager Hosts page showing Clock service stopped

Start NTP inside the container:

service ntpd start
NTP service start command output
NTP service start command output

Wait a few minutes; the UI normalizes (some components may show yellow warnings due to single-node deployment, which is expected).

Cloudera Manager dashboard after NTP fix
Cloudera Manager dashboard after NTP fix

9. Verify HDFS Service

Start the HDFS service from Cloudera Manager, then open its Web UI to confirm it is operational.

Starting HDFS service in Cloudera Manager
Starting HDFS service in Cloudera Manager
HDFS NameNode Web UI
HDFS NameNode Web UI

Reference

The article references https://blog.clairvoyantsoft.com/cloduera-quickstart-vm-using-docker-on-mac-2308acd196f2 for additional context.

About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

DockerBig DataTutorialHadoopNTPClouderaCDHSingle-Node

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion