- root@ubuntu:/opt/hadoop-3.2.1# bin/hdfs namenode -format
- root@ubuntu:/opt/hadoop-3.2.1# sbin/start-dfs.sh
root@ubuntu:/opt/hadoop-3.2.1# sbin/start-dfs.sh Starting namenodes on [master] ERROR: Attempting to operate on hdfs namenode as root ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation. Starting datanodes ERROR: Attempting to operate on hdfs datanode as root ERROR: but there is no HDFS_DATANODE_USER defined. Aborting operation. Starting secondary namenodes [slave1] ERROR: Attempting to operate on hdfs secondarynamenode as root ERROR: but there is no HDFS_SECONDARYNAMENODE_USER defined. Aborting operation.
- 在/hadoop/sbin路径下:修改start-dfs.sh,stop-dfs.sh,start-yarn.sh,stop-yarn.sh四个文件
- root@ubuntu:/opt/hadoop-3.2.1# sbin/start-dfs.sh
Starting nam
HADOOP:Pseudo-Distributed Operation
最新推荐文章于 2022-03-07 01:37:02 发布
本文介绍了在Ubuntu系统中,如何进行Hadoop 3.2.1的伪分布式操作。通过执行`bin/hdfs namenode -format`初始化NameNode,然后使用`sbin/start-dfs.sh`启动HDFS。在启动过程中,对`/hadoop/sbin`下的四个文件进行了修改,并解决了启动过程中遇到的`Connection refused`问题。最后,确认可以通过http://localhost:9870访问HDFS。
摘要由CSDN通过智能技术生成