Hadoop 2.2 安装`.'无此文件或目录 [英] Hadoop 2.2 Installation `.' no such file or directory

查看:33
本文介绍了Hadoop 2.2 安装`.'无此文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用本教程安装了 Hadoop 和 HDFS

I have installed Hadoop and HDFS using this tutorial

http://codesfusion.blogspot.com/2013/10/setup-hadoop-2x-220-on-ubuntu.html

一切都很好.

我还可以创建目录并使用它们

I am also able to create directories and use them using

hadoop fs -mkdir /tmp
hadoop fs -mkdir /small

我也可以说

hadoop fs -ls /

但是我正在学习培训师所做的教程

However I am following a tutorial in which the trainer does

hadoop fs -mkdir temp
hadoop fs -ls

现在在我的机器上,当我发出上述命令时,它说

now on my machine when I issue the above command it says

ls: `.': No such file or directory

在我的培训视频中,命令 hadoop fs -ls 运行良好.为什么要指定/"?

In my training video the command hadoop fs -ls works perfectly. Why should I specify the "/"?

此外,我在所有命令中都收到此警告

Also I am getting this warning in all my commands

13/12/28 20:23:52 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

但在我的培训师视频中没有这样的警告.

But in my trainers video there is no such warning.

我的配置文件和上面的教程完全一样,我也可以在

My configuration file is exactly as the tutorial above and I can also see all management UIs at

http://abhishek-pc:8042/
http://abhishek-pc:50070/
http://abhishek-pc:8088/

所以我的问题是我的配置有什么问题,为什么我的系统与培训视频的表现不同?

So my question is what is wrong with my configuration and why is my system behaving differently than the training video?

推荐答案

好吧,你关于 ls: '.': No such file or directory' 的问题是因为没有 home dir on您当前用户的 HDFS.试试

Well, your problem regarding ls: '.': No such file or directory' is because, there is no home dir on HDFS for your current user. Try

hadoop fs -mkdir -p /user/[current login user]

然后你就可以hadoop fs -ls

根据此警告 WARN util.NativeCodeLoader:无法为您的平台加载 native-hadoop 库...在适用的情况下使用内置 Java 类,请在 这个问题

这篇关于Hadoop 2.2 安装`.'无此文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆