在ubuntu中格式化Namenode [英] Formatting Namenode in ubuntu
问题描述
我正在尝试在ubuntu 12.04上安装hadoop。以下是我输入的错误:
I am trying to install hadoop on ubuntu 12.04.Following is the error i get on typing:
/usr/local/hadoop/bin/hadoop namenode -format
错误namenode.NameNode: java.io.IOException:无法删除当前目录:/ app / hadoop / tmp / dfs / name / current
ERROR namenode.NameNode: java.io.IOException: Cannot remove current directory: /app/hadoop/tmp/dfs/name/current
输入 /usr/local/hadoop/bin/start-all.sh namenode
无法启动
推荐答案
我遇到了类似的问题。我跟着Michael noll在单节点集群上安装了hadoop,然后执行了 bin / hadoop namenode -format ,它抛出了你提到的异常。
I had a similar problem. I followed Michael noll for installing hadoop on a single node cluster and I executed bin/hadoop namenode -format and it threw the exception that you mentioned.
尝试 sudo bin / hadoop namenode -format 解决了这个问题。
Trying sudo bin/hadoop namenode -format solved the issue.
这篇关于在ubuntu中格式化Namenode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!