Code Monkey home page Code Monkey logo

ansible-hadoop's Introduction

Hadoop-ansible

  • Install Hadoop cluster with ansible
  • Now Support CentOS 7.x
  • JDK is Openjdk-1.8
  • Hadoop is the latest version 3.0.0
  • Hive is the version 2.3.2

Before Install

  1. Use DNS Server or update /etc/hosts for all servers
  2. //todo 配置所有节点/etc/hosts
  3. //todo 配置master私钥

Install Hadoop

  1. Download Hadoop to any path

  2. //todo 配置JAVA_HOME

  3. Update the {{ download_path }} in vars/var_basic.yml

download_path: "/home/pippo/Downloads" # your local path 
hadoop_version: "3.0.0" # your hadoop version
hadoop_path: "/home/hadoop" # default in user "hadoop" home
hadoop_config_path: "/home/hadoop/hadoop-{{hadoop_version}}/etc/hadoop"
hadoop_tmp: "/home/hadoop/tmp"
hadoop_dfs_name: "/home/hadoop/dfs/name"
hadoop_dfs_data: "/home/hadoop/dfs/data"
  1. Use ansible template to generate the hadoop configration, so If your want to add more properties, just update the vars/var_basic.yml.default is

Install Master

run shell like

ansible-playbook -i hosts/host master.yml

Install Workers

run shell like:

master_ip:  your hadoop master ip
master_hostname: your hadoop master hostname

above two variables must be same like your real hadoop master

ansible-playbook -i hosts/host workers.yml -e "master_ip=172.16.251.70 master_hostname=hadoop-master"

Install hive

  1. Create database first and give right authority

  2. run it

  3. //todo chuqbach/Big-Data-Installation#1

ansible-playbook -i hosts/host hive.yml

License

GNU General Public License v3.0

//todo Run Hadoop

ansible-hadoop's People

Watchers

LuZhong 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.