HADOOP:Pseudo-Distributed Operation

本文介绍了在Ubuntu系统中,如何进行Hadoop 3.2.1的伪分布式操作。通过执行`bin/hdfs namenode -format`初始化NameNode,然后使用`sbin/start-dfs.sh`启动HDFS。在启动过程中,对`/hadoop/sbin`下的四个文件进行了修改,并解决了启动过程中遇到的`Connection refused`问题。最后,确认可以通过http://localhost:9870访问HDFS。
摘要由CSDN通过智能技术生成
  1. root@ubuntu:/opt/hadoop-3.2.1# bin/hdfs namenode -format
  2. 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.
  3. 在/hadoop/sbin路径下:修改start-dfs.sh,stop-dfs.sh,start-yarn.sh,stop-yarn.sh四个文件
  4. root@ubuntu:/opt/hadoop-3.2.1# sbin/start-dfs.sh
    Starting nam
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值