Linux安装 hadoop-3.3.1
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
1 下载安装包
wget --no-check-certificate https://mirrors.bfsu.edu.cn/apache/hadoop/common/hadoop-3.3.1/hadoop-3.3.1.tar.gz
2 解压
tar -zxvf hadoop-3.3.1.tar.gz
**3 修改 hadoop-env.sh配置文件**
vi /hadoop-3.3.1/etc/hadoop/hadoop-env.sh
加入如下配置
export JAVA_HOME=/APP/jdk1.8.0_141
**4 修改 hdfs-site.xml 配置文件**
vi /hadoop-3.3.1/etc/hadoop/hdfs-site.xml
加入如下内容,在<configuration>标签内
dfs.namenode.rpc-address localhost:9000
dfs.namenode.name.dir /APP/hdpdata/name/
dfs.datanode.data.dir /APP/hdpdata/data/
dfs.namenode.http-address localhost:6002 ``` **5 初始化namedata**
进入安装目录
/hadoop-3.3.1/bin
./hadoop namenode -format
查看有以下目录则初始化成功 “namenode存储元数据的位置”—> hdfs-site.xml 配置文件的位置
6 启动namenode和datanode
进入如下目录
/hadoop-3.3.1/sbin
启动
./hadoop-daemon.sh start namenode
./hadoop-daemon.sh start datanode
3.3 配置 core-site.xml
vi /hadoop-3.3.1/etc/hadoop/core-site.xml
加入如下内容,在标签内
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000/</value>
<description>The name of the default file system. A URI whose
scheme and authority determine the FileSystem implementation. The
uri's scheme determines the config property (fs.SCHEME.impl) naming
the FileSystem implementation class. The uri's authority is used to
determine the host, port, etc. for a filesystem.</description>
GitHub 加速计划 / li / linux-dash
6
1
下载
A beautiful web dashboard for Linux
最近提交(Master分支:4 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献2条内容
所有评论(0)