1.下载,上传,解压,配置环境变量
2.修改配置文件
2.1 HDFS
core-site.xml
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
2.2 NameNode
hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
3.启动
3.1 初始化
hdfs namenode -format
3.2 启动服务
start-dfs.sh
3.3 查看节点
jps
原文链接:
https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html