在运行hadoop时立即关闭NameNode数据节点资源管理器等

问题描述 投票:0回答:1
C:\hadoop-3.3.6\sbin>.\start-dfs.cmd

运行上述命令后,命令提示符会打开数据节点和名称节点,但它立即关闭我该怎么办

java.io.IOException: All specified directories are not accessible or do not exist.
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:236)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1236)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:808)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:694)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:781)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:1033)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:1008)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1782)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1847)
2024-04-11 17:46:20,780 INFO handler.ContextHandler: Stopped o.e.j.w.WebAppContext@7dcc91fd{hdfs,/,null,STOPPED}{file:/C:/hadoop-3.3.6/share/hadoop/hdfs/webapps/hdfs}
2024-04-11 17:46:20,792 INFO server.AbstractConnector: Stopped ServerConnector@200606de{HTTP/1.1, (http/1.1)}{0.0.0.0:9870}
2024-04-11 17:46:20,792 INFO server.session: node0 Stopped scavenging
2024-04-11 17:46:20,795 INFO handler.ContextHandler: Stopped o.e.j.s.ServletContextHandler@52350abb{static,/static,file:///C:/hadoop-3.3.6/share/hadoop/hdfs/webapps/static/,STOPPED}
2024-04-11 17:46:20,796 INFO handler.ContextHandler: Stopped o.e.j.s.ServletContextHandler@3aee3976{logs,/logs,file:///C:/hadoop-3.3.6/logs/,STOPPED}
2024-04-11 17:46:20,801 INFO impl.MetricsSystemImpl: Stopping NameNode metrics system...
2024-04-11 17:46:20,802 INFO impl.MetricsSystemImpl: NameNode metrics system stopped.
2024-04-11 17:46:20,802 INFO impl.MetricsSystemImpl: NameNode metrics system shutdown complete.
2024-04-11 17:46:20,804 ERROR namenode.NameNode: Failed to start namenode.
java.io.IOException: All specified directories are not accessible or do not exist.
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:236)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1236)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:808)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:694)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:781)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:1033)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:1008)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1782)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1847)
2024-04-11 17:46:20,805 INFO util.ExitUtil: Exiting with status 1: java.io.IOException: All specified directories are not accessible or do not exist.
2024-04-11 17:46:20,818 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at LAPTOP-MP0V5LBJ/192.168.14.19
************************************************************/ 
  1. 我尝试安装新版本的 microsoft Visual C++
  2. 像这样的文件夹需要删除我在上面看到的应用程序/数据/临时文件 stackoverflow 有人回答,但就我而言,没有这样的文件夹 删除。
windows hadoop shutdown namenode
1个回答
0
投票

您是否尝试过以管理员模式运行 Hadoop?正如消息所说,它无法访问,可能是由于权限不匹配。

© www.soinside.com 2019 - 2024. All rights reserved.