Giter VIP home page Giter VIP logo

hadoop_cluster-docker's Introduction

hadoop_cluster-docker

  1. #build an image for hadoop from a dockerfile docker build -t hadoop .

  2. create config files bootstrap.sh, ssh_config, sshd_config, slaves, core-site.xml, hdfs-site.xml, mapred-sit.xml,yarn-site.xml

4.create a network for hadoop cluster docker network create --driver=bridge hadoop

  1. create hadoop master docker rm -f hadoop-master docker run -itd --net=hadoop -p 50070:50070 -p 8088:8088 --name hadoop-master --hostname hadoop-master hadoop

  2. create hadoop slave1,2,3 docker run -itd --net=hadoop --name hadoop-slave1 --hostname hadoop-slave1 hadoop &> /dev/null docker run -itd --net=hadoop --name hadoop-slave2 --hostname hadoop-slave2 hadoop &> /dev/null docker run -itd --net=hadoop --name hadoop-slave3 --hostname hadoop-slave3 hadoop &> /dev/null

  3. login hadoop-master docker exec -it hadoop-master bash

  4. hdfs namenode -format

  5. start-dfs.sh

  6. start-yarn.sh

  7. get hadoop-master's ip docker inspect hadoop-master

  8. input hadoop-master's ip:8088 to browser hadoop cluster

  9. run test.sh in hadoop-master container to test hadoop-cluser.

hadoop_cluster-docker's People

Contributors

zcp avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.