Yarn error : Not able to initialize app-log directories in any of the configured local directories

Yarn error : Not able to initialize app-log directories in any of the configured local directories

我在使用 MapReduce 时遇到错误:

Not able to initialize app-log directories in any of the configured local directories

这是我的纱线-site.xml:

<configuration>

<!-- Site specific YARN configuration properties -->

<property>
  <name>yarn.nodemanager.resource.memory-mb</name>
    <value>2200</value>
      <description>Amount of physical memory, in MB, that can be allocated for containers.</description>
      </property>

<property>
  <name>yarn.scheduler.minimum-allocation-mb</name>
    <value>500</value>
    </property>

<property>
  <name>yarn.scheduler.maximum-allocation-mb</name>
      <value>2000</value>
          </property>

<property>
  <name>yarn.scheduler.minimum-allocation-vcores</name>
        <value>1</value>
                  </property>

<property>
  <name>yarn.scheduler.maximum-allocation-vcores</name>
          <value>2</value>
                            </property>

<property>
        <name>yarn.nodemanager.disk-health-checker.enable</name>
                <value>false</value>
                </property>

<property>
      <name>yarn.log-aggregation-enable</name>
            <value>true</value>
              </property>
<property>
 <name>yarn.nodemanager.local-dirs</name>
 <value>/tmp/yarn_logs</value>
 </property>

<property>
 <name>app-log directories</name>
  <value>/tmp/yarn_logs</value>
   </property>

</configuration>

如您所见,我禁用了健康检查以清楚地看到问题出在哪里。

这是我已经尝试过的方法:

我不断收到完全相同的错误。我真的不知道接下来要做什么..有什么想法吗?感谢提前!

PS:我已经检查过:我所有的 hadoop 服务似乎都已启动。

解决方案:我只是将每个文件都删除到 hadoop/logs,格式化名称节点并重新启动一切。我的节点又健康了!