Docker image for Hadoop
I need a Hadoop image that:
There are some Docker images for Hadoop already but I could not find one that has the features that I need so I decided to built this image.
Hadoop that is installed in psuedo-distributed mode
Runtime customizable options (over environment variables):
Applied best practices to build image to reduce its size (~900m right now and it is much smaller compare to some other Hadoop docker images)
# Start a Hadoop server on a container named
docker run -d --name hadoop binhnv/docker-hadoop
# Login to Hadoop container
docker exec -it hadoop bash
# Create a directory
/usr/local/hadoop/bin/hadoop fs -mkdir /test
# List directory
/usr/local/hadoop/bin/hadoop fs -ls /
FROM binhnv/docker-hadoop
CMD dhcmd config && tail -f /dev/null
version: "2"
services:
hadoops:
image: binhnv/docker-hadoop
hadoopc:
build: .
environment:
HD_NAMENODE_HOST: "hadoops"
YARN_RESOURCEMANAGER_HOSTNAME: "hadoops"
docker-compose up -d --build
Now you can login into the client container and run all hadoop commands there
Content type
Image
Digest
Size
447.7 MB
Last updated
about 10 years ago
docker pull binhnv/docker-hadoop