Public Repository

Last pushed: a year ago
Short Description
Docker Image on alpine linux and latest Hadoop version
Full Description

Pull the official alpine linux
Create a docker file with alpine commands to install Java and Hadoop
Install Open JDK 7.
Install Hadoop 2.7.2

Alpine linux: latest
Java: Open JDK 7
Hadoop : 2.7.2

Docker File:

FROM alpine:latest
RUN apk --update add openjdk7-jre
RUN apk update
RUN apk add curl
RUN apk add --update bash
RUN curl -s | tar -xz -C /usr/local
ENV JAVA_HOME=/usr/lib/jvm/java-1.7-openjdk
ENV HADOOP_HOME=/usr/local/hadoop-2.7.2
ENV PATH=$PATH:/usr/local/hadoop-2.7.2/sbin:/usr/local/hadoop-2.7.2/bin
ENV HADOOP_COMMON_LIB_NATIVE_DIR=/usr/local/hadoop-2.7.2/lib/native
ENV HADOOP_COMMON_HOME=/usr/local/hadoop-2.7.2
ENV HADOOP_HDFS_HOME=/usr/local/hadoop-2.7.2
RUN $HADOOP_HOME/bin/hadoop version
CMD echo "bin/hadoop version displays the latest version of hadoop and it is installed successfully"

Docker Pull Command