Mkdirs 无法创建 hadoop.tmp.dir
我已经从 Apache Hadoop 0.20.2 升级到最新的稳定版本; 0.20.203。在这样做的同时,我还正确更新了所有配置文件。但是,我在尝试通过 JAR 文件运行作业时遇到以下错误:
$ hadoop jar myjar.jar
$ Mkdirs failed to create /mnt/mydisk/hadoop/tmp
其中 /mnt/mydisk/hadoop/tmp
是 hadoop.tmp.dir
的位置> 如 core-site.xml 中所述:
..
<property>
<name>hadoop.tmp.dir</name>
<value>/mnt/mydisk/hadoop/tmp</value>
</property>
..
我已经检查该目录是否存在,并且用户 hadoop
的权限设置是否正确。我还尝试删除该目录,以便 Hadoop 本身可以创建它。但这没有帮助。
使用 hadoop 版本 0.20.2 执行 Hadoop 作业是开箱即用的。然而,更新后有些东西被破坏了。有人可以帮我找出问题所在吗?
I have upgraded from Apache Hadoop 0.20.2 to the newest stable release; 0.20.203. While doing that, I've also updated all configuration files properly. However, I am getting the following error while trying to run a job via a JAR file:
$ hadoop jar myjar.jar
$ Mkdirs failed to create /mnt/mydisk/hadoop/tmp
where /mnt/mydisk/hadoop/tmp
is the location of hadoop.tmp.dir
as stated in the core-site.xml:
..
<property>
<name>hadoop.tmp.dir</name>
<value>/mnt/mydisk/hadoop/tmp</value>
</property>
..
I've already checked that the directory exists, and that the permissions for the user hadoop
are set correctly. I've also tried out to delete the directory, so that Hadoop itself can create it. But that didn't help.
Executing an Hadoop job with hadoop version 0.20.2 worked out of the box. However, something is broken after the update. Can someone help me to track down the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论