Giter VIP home page Giter VIP logo

docker_hadoop_cluster's Introduction

docker_hadoop_cluster

A docker way to quick build a hadoop and hive cluster with hadoop3.2&hive3.1.2

Step 0

clone this repository to your computer

Step 1

first you need to make a basic image that login without password,so in this repository it called centos7_with_nopass_ssh_basic.

1.1 confirm you Dockerfile id_rsa.pub

copy your id_rsa.pub to centos7_with_nopass_ssh_basic/

1.2 build centos7_with_nopass_ssh_basic images

in this directory, you get two files:id_rsa.pub and Dockerfile,then run this command:

docker build -t centos7_with_nopass_ssh_basic .

Step 2 create network for docker

docker network create --subnet=172.168.8.0/24 bridge_for_hadoop

Step 3 build hadoop and hive image

change your directory to hadoop_cluster and run: add apache-hive-3.1.2-bin.tar.gz and hadoop-3.2.2.tar.gz to this directory add jdk-8u311-linux-aarch64.tar.gz or jdk-8u311-linux-x64.tar.gz to this directory

docker build -t hadoop_cluster .

Step 4 create a volume for hadoop data

mkdir -p your_path_to_docker_volumn(you need to change this command for you)

Step 5 change and run hadoop-start.sh

change hosts_info to you create network change VOLUME_DIR to you create then,run

./hadoop-start.sh

Step 6

you can get the log:

******** start hadoop cluster ok! ********
******** start hiveserver2 ok! ********
******** all ok! ********

enjoy you journey!

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.