GithubHelp home page GithubHelp logo

hadoopscript's Introduction

hadoop及生态圈组件运维安装脚本(Hadoop operation and maintenance installation script)

脚本主要用于方便学习,从不断配置环境中解脱出来, 版本为hadoop2最后一个版本,可自行修改脚本调整

版本信息为:

hadoop 2.9.2

hive 1.2.2(使用MapReduce引擎)

mysql 5.7.6

jdbc 5.1.48

centos

切换为root用户

su root

(可选)centos7初始化脚本,centos其他版本可将脚本内换源地址修改为想用版本号

主要为yum换源及基础工具安装

cd ~
curl -O https://cdn.jsdelivr.net/gh/shawn-ms/HadoopScript/centos/centos7_init.sh
chmod 766 centos7_init.sh
./centos7_init.sh

安装hadoop

cd ~
curl -O https://cdn.jsdelivr.net/gh/shawn-ms/HadoopScript/centos/centos_hadoop_install.sh
chmod 766 centos_hadoop_install.sh
./centos_hadoop_install.sh

执行1.安装hadoop前要先执行2 ssh localhost

安装mysql

cd ~
curl -O https://cdn.jsdelivr.net/gh/shawn-ms/HadoopScript/centos/centos_mysql.sh
chmod 766 centos_mysql.sh
./centos_mysql.sh

安装hive(安装hive前,请安装启动hadoop,mysql)

cd ~
curl -O https://cdn.jsdelivr.net/gh/shawn-ms/HadoopScript/centos/hive.sh
chmod 766 hive.sh
./hive.sh

ubuntu

切换为root用户

su root

ubuntu 默认非root登录,首次需要设置root密码 passwd root

(可选)ubuntu初始化脚本

主要为apt换源及基础工具安装

cd ~
curl -O https://file.masheng.fun/shell/ubuntu/ubuntu_init.sh
chmod 766 ubuntu_init.sh
./ubuntu_init.sh

安装hadoop

cd ~
curl -O https://cdn.jsdelivr.net/gh/shawn-ms/HadoopScript/ubuntu/ubuntu_hadoop_install.sh
chmod 766 ubuntu_hadoop_install.sh
./ubuntu_hadoop_install.sh

执行1.安装hadoop前要先执行2 ssh localhost

安装mysql

可以参照 https://www.masheng.fun/archives/60.html

需打开远程访问,将密码设为 123456

安装hive(安装hive前,请安装启动hadoop,mysql)

cd ~
curl -O https://cdn.jsdelivr.net/gh/shawn-ms/HadoopScript/ubuntu/hive.sh
chmod 766 hive.sh
./hive.sh

hadoopscript's People

Contributors

shawn-ms avatar

Stargazers

 avatar  avatar

Watchers

 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.