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.
Reading font
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/quickstartThe download may take a while; a proxy might be required if the pull stalls.
2. Verify the Image
docker images | grep cloud3. 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-quickstartNote: 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.
4. Enter the Container and Check Initial Services
# Find container ID
docker ps
# Enter container
docker exec -it container_id bash
# List Java processes
jpsSeveral components start automatically, but Cloudera Manager itself is not yet running.
5. Start Cloudera Manager
sudo /home/cloudera/cloudera-manager --express --forceStartup takes roughly 10 minutes. On success the terminal shows a confirmation message.
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/hostsAdd the line:
127.0.0.1 quickstart.cloudera7. Access Cloudera Manager Web UI
Open http://127.0.0.1:7180/ in a browser. Default credentials are cloudera / cloudera.
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.
Start NTP inside the container:
service ntpd startWait a few minutes; the UI normalizes (some components may show yellow warnings due to single-node deployment, which is expected).
9. Verify HDFS Service
Start the HDFS service from Cloudera Manager, then open its Web UI to confirm it is operational.
Reference
The article references https://blog.clairvoyantsoft.com/cloduera-quickstart-vm-using-docker-on-mac-2308acd196f2 for additional context.