ubuntu - 无法使用 Hadoop-Fuse 挂载 HDFS

标签 ubuntu hadoop hdfs mount fuse

我有一个在 AWS EC2 上运行的 2 节点 Hadoop 集群。我正在尝试将 HDFS 安装在不同的 EC2 实例上。客户端运行的是 Ubuntu 12.04.4 LTS,我已经安装了 Hadoop-Fuse。

# apt-cache policy hadoop-0.20-fuse
hadoop-0.20-fuse:
Installed: 0.20.2+923.479-1~maverick-cdh3
Candidate: 0.20.2+923.479-1~maverick-cdh3
Version table:
*** 0.20.2+923.479-1~maverick-cdh3 0
   500 http://archive.cloudera.com/debian/ maverick-cdh3/contrib amd64 Packages
   100 /var/lib/dpkg/status

在我尝试安装它之后,我得到以下信息:

# hadoop-fuse-dfs dfs://10.0.0.160:9000 /mnt/tmp
INFO fuse_options.c:165 Adding FUSE arg /mnt/tmp

当我运行“df”命令时,我在那里看不到它并得到输入/输出错误

# df -h
df: `/mnt/tmp': Input/output error
Filesystem                Size  Used Avail Use% Mounted on
/dev/xvda1                 30G  3.5G   25G  13% /

路径也显示如下:

# ls -alh /mnt
ls: cannot access /mnt/tmp: Input/output error
total 8.0K
drwxr-xr-x  3 root root 4.0K Aug 11 19:42 .
drwxr-xr-x 25 root root 4.0K Aug 11 17:35 ..
d?????????  ? ?    ?       ?            ? tmp

有什么方法可以安装它吗?

最佳答案

不幸的是,hadoop-fuse-dfs 没有很好的错误消息或文档。

为了让 hadoop-fuse-dfs 正常工作,您需要 Namenode 的 RPC 端口,即 hdfs-site.xml 中的 dfs.namenode.servicerpc-address

# hadoop-fuse-dfs dfs://NAMENODE:RPCPORT /mnt/tmp

关于ubuntu - 无法使用 Hadoop-Fuse 挂载 HDFS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25251253/

相关文章:

apache - laravel 在此服务器上找不到请求的 url

javascript - 如何在 ubuntu 中安装特定的 yarn 版本

hadoop - HDP 2.1 到 2.2 升级 RHEL6

hadoop - 使用合并器执行MapReduce的时间

hadoop - 如何将文件从另一个驱动器的本地目录复制到Apache Hadoop中的HDFS?

amazon-web-services - 尽管状态为 "healthy",但无法访问 Mesosphere DC/OS 上的 HDFS

linux - 如何查找安装在ubuntu中的软件版本

python - Hadoop(Hive)中是否有类似存储过程/作业的东西

hadoop - chown 和 chmod 仅适用于 hdfs 上的文件夹(递归地)

javascript - 尝试使用 Eclipse 的 Chrome 调试器调试 NodeJ 时“无法获取调试选项卡”