Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

docker run -id -h master --name master -v /myMasterData:/myData hadoop-jdk8

docker run -id -h slave1 --name slave1 -v /mySlave1Data:/myData hadoop-jdk8

docker exec -it master /bin/bash

hadoop version

....

vi /usr/local/hadoop/etc/hadoop/core-site.xml

...

...

...

vi /etc/hosts

master 192.168.121.3

slave1 192.168.121.4

...

ssh-keygen -q -N "" -t rsa -f ~/.ssh/id_rsa

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

scp -r ~/.ssh root@slave1:~

scp /etc/hosts root@slave1:/etc/hosts

scp /usr/local/hadoop/etc/hadoop/* root@slave1:/usr/local/hadoop/etc/hadoop

hdfs namenode -format
start-all.sh

Docker Pull Command
Owner
weihanchen
Source Repository