我在使用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服务似乎都启动了。
发布于 2017-07-06 15:06:08
解决方案:我刚刚将所有文件删除到hadoop/日志中,格式化namenode并重新启动所有内容。我的节点又恢复健康了!
https://stackoverflow.com/questions/44949078
复制相似问题