How to setup Cloudera’s Quickstart Docker Container up and running

Big Data technology space playing very important role in industry now a days. ‘docker’ and ‘Cloudera’ has a lot of attention in the market. We need to spend lot of time to setup the tools as per my experience. So this article might help in setup Cloudera’s Quickstart Docker Container.

Prerequisites:

Install docker. Download the Docker for Mac installer from here. or for Windows, from here. And finally for Linux, from here.

After installing docker, check docker version from terminal or command prompt. type,

docker version.

Its always better if we have good memory for VMs. As my system has 8GB, i have opted 4GB for my docker. Depends on your system configuration, try increasing docker’s memory by navigating to,

‘Docker Desktop’ -> Settings

Download Cloudera QuickStart image from Docker Hub

After installing the docker, type

docker pull cloudera/quickstart:latest

This will download the cloudera’s quickstart image to docker. It takes as it download around 4 to 6GB. Once downloaded, you can check downloaded image by typing,

docker images

This shows all downloaded images including cloudera’s quickstart image. If you just installed docker and downloaded this, shows only one image.

Run image and start container

Execute below command to run the Cloudera QuickStart Container.

docker run — hostname=quickstart.cloudera — privileged=true -t -i -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 4239cd2958c6 /usr/bin/docker-quickstart

Above command starts docker container and opens ports to access services. To check running container, type,

docker ps -a

Above command shows the details about container like container id, ports, status and etc. If you want to know all the details, then type,

docker inspect [CONTAINER ID]

Now, you can navigate to a browser and type in your ip and port, you should be able to access hue with the login/password combo of cloudera/cloudera.