CentOS 7配置hadoop和hbase伪分布式模式保姆级教程(近乎零基础跟着配也能配对)

本文详细指导了在CentOS7上安装VMware17、Tabby,配置静态IP,安装和配置Hadoop和HBase,包括设置环境变量、连接虚拟机、上传文件、格式化以及启动服务。每一步都配有详细的步骤和截图,确保读者能顺利完成搭建过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前置准备:

VMware17

Tabby:https://github.com/Eugeny/tabby/releases/tag/v1.0.207

jdk-8u401:https://www.java.com/en/download/

hbase-1.3.1:https://archive.apache.org/dist/hbase/1.3.1/

hadoop-2.7.7:https://archive.apache.org/dist/hadoop/common/hadoop-2.7.7/

CentOS-7安装镜像:去找其他链接吧

打包在以下百度网盘链接里了

链接:https://pan.baidu.com/s/1VQGGVFOZ5uSo-9P-9reF9A?pwd=igcd

提取码:igcd

1、安装VMware17和Tabby

这里不再详细展开如何安装

45bd83c638dd4b25b34ada57a06c36ca.png

097a27cc67404b97a59b36441bede613.png

fd6245ceda904903b1c8b6a4e37b48e5.png

2、安装centos7

b2934600bbca4ae2a32a8e17f1068ac1.png

df05ad87ba0e4c49a12eaff55a298f22.png

b869f971a4bf495c99de0aa7132ffdd9.png

d02e7f20e1574d74bba77086d674e1d3.png

顺带一提,装好后关机打个快照可以方便之后克隆装好虚拟机的最纯净状态,不必再次安装虚拟机(能省半个小时它不香吗?)

3、配置静态ip

vim /etc/sysconfig/network-scripts/ifcfg-ens33

ad58ea070be9409fa32e554535d3c4fc.png

按a可以进入编辑模式

0ab2d523e38e40d5900c239e6db76d9e.png

不会看自己网段的看下图

03a8bf8e07184202841534d0e5e93335.png

要改的

BOOTPROTO="static"

要新增的

IPADDR="192.168.88.102"
GATEWAY="192.168.88.2"
NETMASK="255.255.255.0"
DNS="192.168.88.2"

配完后如下图

注意保存是先按esc键进入命令模式再输入:wq回车

f751a7fb2e814e6993e2db079b4db50e.png

重启网络

systemctl restart network
### Hadoop Pseudo-Distributed Installation Tutorial on CentOS For setting up a pseudo-distributed environment of Hadoop on CentOS, several steps need to be followed carefully. Initially, downloading Hadoop is necessary from the official Apache website[^1]. After obtaining the software package, proceed with unpacking it into an appropriate directory. Setting `JAVA_HOME` correctly plays a critical role in ensuring that Hadoop operates without issues. This involves editing the `$HADOOP_HOME/etc/hadoop/hadoop-env.sh` file where one sets the `JAVA_HOME` environment variable according to the Java installation location on the system. An example configuration line would look like this: ```bash export JAVA_HOME=/opt/jdk1.8.0_131/ ``` Following this setup step, configuring other essential files becomes important for enabling pseudo-distributed operation. Editing these configurations allows components within Hadoop such as NameNode and DataNode services to start properly when running in this mode[^3]. Additionally, while not directly related to Hadoop's core functionality but often used alongside it, environments may also require specifying paths for tools or frameworks interacting closely with Hadoop; examples include Spark home directories among others specified similarly through shell scripts[^4]. After completing all required edits, starting individual daemons can typically be done using commands provided by Hadoop itself. For instance, executing specific startup scripts will initiate various nodes needed for operations under pseudo-distribution settings. To verify successful deployment after following above instructions tailored towards CentOS systems specifically, checking log outputs generated during initialization processes helps confirm everything functions smoothly.
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值