Public Repository

Last pushed: 2 years ago
Short Description
Hadoop 2.5.0 on Ubuntu 14.04 with sshd, hdfs, yarn, zookeeper, pig
Full Description

Components:

sshd,
hdfs,
yarn,
zookeeper,
pig

Pull the image:

sudo docker pull fredxi/hadoop_single_node

Run the image:

sudo docker run -i -t -p 2200:22 -p 2181:2181 -p 50070:50070 -p 8088:8088 fredxi/hadoop_single_node:2_pig /bin/bash

Start the services (sshd, hdfs, yarn... etc):

/root/start.sh

note:

a few environment variables like JAVA_HOME, HADOOP_HOME, PIG_HOME, PATH are set in /root/.bashrc. Thus they will only be visible after you login as root. Usually you do it by ssh to it. So, use ssh as your console for the container.

ssh to the container:

ssh root@127.0.0.1 -p 2200 #password is root

test if java works:

java -version

test if hadoop works:

hadoop version

test if pig works:

pig -version

name node U:

http://localhost:50070/

yarn UI:

http://localhost:8088/

Docker Pull Command
Owner
fredxi

Comments (0)