Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 911 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 911 Bytes

Creating docker with all CDH components

Docker scripts in this directory spawns a CentOS 6 docker VM and installs all the CDH components (Hadoop, Spark, Hbase, Hive, Impala, Hue, Zookeeper, Oozie etc.).

How to build the cdh container?

docker build -t docker-cdh54 .

How to run the cdh container?

docker run -v /root/docker:/root -p 8042:8042 -p 8088:8088 -p 8020:8020 -p 8888:8888 -p 11000:11000 -p 11443:11443 -p 9090:9090 -d -ti --privileged=true docker-cdh54

Wait a little as the build can take several minute to download each image and packages to rebuild CDH.

How to open an ssh session inside the cdh?

docker ps

the command return the list of Containers. Select the Container ID matching the CDH container that was started. => 922ac2f47d93 ... or any similar Container Id

docker attach 922ac2f47d93