hadoop名称节点format:exitcodeexception exitcode=-1073741515:

ycggw6v2  于 2021-06-29  发布在  Java
关注(0)|答案(1)|浏览(626)

我试图安装hadoop,在格式化name node时遇到了这个错误

  1. Re-format filesystem in Storage Directory root= C:\hadoop\data\namenode; location= null ? (Y or N) Y
  2. 2021-01-03 11:30:36,360 INFO namenode.FSImage: Allocated new BlockPoolId: BP-801639091-192.168.218.1-1609655436323
  3. 2021-01-03 11:30:36,362 INFO common.Storage: Will remove files: []
  4. 2021-01-03 11:30:36,453 WARN namenode.NameNode: Encountered exception during format
  5. ExitCodeException exitCode=-1073741515:
  6. at org.apache.hadoop.util.Shell.runCommand(Shell.java:1008) at org.apache.hadoop.util.Shell.run(Shell.java:901)
  7. at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:1213)
  8. at org.apache.hadoop.util.Shell.execCommand(Shell.java:1307)
  9. at org.apache.hadoop.util.Shell.execCommand(Shell.java:1289)
  10. at org.apache.hadoop.fs.FileUtil.execCommand(FileUtil.java:1341)
  11. at org.apache.hadoop.fs.FileUtil.execSetPermission(FileUtil.java:1332)
  12. at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:1285)
  13. at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:456)
  14. at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:591)
  15. at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:613)
  16. at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:188)
  17. at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1271)
  18. at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1713)
  19. at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1821)
  20. 2021-01-03 11:30:36,459 ERROR namenode.NameNode: Failed to start namenode.

我参考了许多不同的文章,但没有结果,我试图使用另一个版本的hadoop,但问题仍然存在,因为我刚刚开始,我不能完全理解这个问题,因此我需要帮助
这些是我的配置

  1. -For core-site.xml
  2. <configuration>
  3. <property>
  4. <name>fs.defaultFS</name>
  5. <value>hdfs://localhost:9000</value>
  6. </property>
  7. </configuration>
  8. - For mapred-site.xml
  9. <configuration>
  10. <property>
  11. <name>mapreduce.framework.name</name>
  12. <value>yarn</value>
  13. </property>
  14. </configuration>
  15. -For yarn-site.xml
  16. <configuration>
  17. <property>
  18. <name>yarn.nodemanager.aux-services</name>
  19. <value>mapreduce_shuffle</value>
  20. </property>
  21. <property>
  22. <name>yarn.nodemanager.auxservices.mapreduce.shuffle.class</name>
  23. <value>org.apache.hadoop.mapred.ShuffleHandler</value>
  24. </property>
  25. </configuration>
  26. -For hdfs-site.xml
  27. <configuration>
  28. <property>
  29. <name>dfs.replication</name>
  30. <value>1</value>
  31. </property>
  32. <property>
  33. <name>dfs.namenode.name.dir</name>
  34. <value>C:\hadoop\data\namenode</value>
  35. </property>
  36. <property>
  37. <name>dfs.datanode.data.dir</name>
  38. <value>C:\hadoop\data\datanode</value>
  39. </property>
  40. </configuration>

请引导我

ulmd4ohb

ulmd4ohb1#

将我的bin目录替换为这个bin。
我知道你需要在安装后更换它,但以前的箱子,我取代了我的安装箱不工作。

相关问题