Recently, the authors compiled a set of Hadoop to build a program. The final image size 1.4G multi-use docker subnet, container restart without reconfiguring your / etc / hosts file.
Configuration process refer to the following blog, some details of these blog which explained in more detail.
ssh configuration section:
https://blog.csdn.net/weixin_42051109/article/details/82744993
wordcount part:
https://blog.csdn.net/alexwym/article/details/82497582
Although the configuration is over, but some places are not entirely understand, follow-up will have the opportunity to do some additional explanation.
* Environment: Ubuntu16.04 virtual machine
Ready to work
Download extract jdk1.8 folder
Folder download extract Hadoop2.8.5
docker pull centos7 base image
Built mydocker folder
The jdk1.8 folder and Hadoop mydocker folder to folder (here, for brevity to rename folder Hadoop2.8.5 Hadoop)
Hadoop edit files in the folder (create a mirror to be modified to avoid after three times)
After / Hadoop folder modification hadoop.env.sh first into Hadoop / etc
tianyou @ ubuntu: ~ / mydocker / Hadoop / etc / Hadoop $ vim hadoop-env.sh
be modified as follows path JAVA_HOME
export JAVA_HOME = /usr/local/jdk1.8
modified core-site.xml follows
@ Ubuntu Tianyou: ~ / mydocker / hadoop / etc / hadoop $ vim Core-the site.xml
----------------
Disclaimer: This article is CSDN blogger "CSDN cloud computing" in original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/FL63Zv9Zou86950w/article/details/104681415