Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ex3 could only be replicated to 0 nodes instead of minReplication (=1). There are 2 datanode(s) running and.2 node(s) are excluded in this operation. #46

Open
19-rk opened this issue Nov 12, 2022 · 0 comments

Comments

@19-rk
Copy link

19-rk commented Nov 12, 2022

在master、slave01、slave02节点分别执行

cd /usr/local
rm -rf ./hadoop/tmp

在master节点执行, 重新格式化

cd /usr/local/hadoop
bin/hdfs namenode -format

造成这个问题的原因是使用hadoop namenode -fohhat格式化时格式化了多次造成那么spacelD不一致。那么可以去修改对应的配置文件,也可以直接删除,重新格式化。

@19-rk 19-rk changed the title could only be replicated to 0 nodes instead of minReplication (=1). There are 2 datanode(s) running and.2 node(s) are excluded in this operation. Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant