无法在 Windows 上的 Hadoop 中设置本地目录

Joh*_*tom 2 java hadoop

尝试在 Windows 上运行 MapReduce 作业时,出现如下错误:

Error: Application application_1441785420720_0002 failed 2 times due to AM Container for appattempt_1441785420720_0002_000002 exited with exitCode:-1000

Diagnostics:
Application application_1441785420720_0003 failed 2 times due to AM Container for appattempt_1441785420720_0003_000002 exited with exitCode: -1000 For more detailed output, check application tracking page:http://HOST:8088/cluster/app/application_1441785420720_0003 Then, click on links to logs of each attempt.

Diagnostics: Failed to setup local dir /tmp/hadoop-USER/nm-local-dir, which was marked as good. Failing this attempt. Failing the application.
Run Code Online (Sandbox Code Playgroud)

昨天一切正常,Java 环境、文件权限或 Hadoop 配置没有任何变化。

小智 7

由于 Hadoop 集群环境是在 WINDOWS 操作系统上,因此您应该使用“以管理员身份运行”来运行 CMD 来修复此问题