赞
踩
下载安装伪分布式:
1. 国内源下载地址:https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/ Index of /apache/hadoop/commonhttps://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/
https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/hadoop-3.2.4/hadoop-3.2.4.tar.gz
2. 解压:
tar -xvf hadoop-3.2.4.tar.gz
3.配置Hadoop环境
编辑~/.bashrc文件,添加以下内容:
- export HADOOP_HOME=/path/to/hadoop-3.2.4
- export PATH=$PATH:$HADOOP_HOME/bin
记得将/path/to/hadoop-3.2.1替换为实际的Hadoop路径。
然后,运行以下命令使配置生效:
source ~/.bashrc
hadoop version
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。