How to mount HDFS on Ubuntu 14.04

谁说我不能喝 提交于 2019-11-30 05:14:34
Alex Dvoretsky

I successfuly did it today using instructions on Cloudera site

wget http://archive.cloudera.com/cdh5/one-click-install/trusty/amd64/cdh5-repository_1.0_all.deb      
sudo dpkg -i cdh5-repository_1.0_all.deb     
sudo apt-get update       
sudo apt-get install hadoop-hdfs-fuse
sudo mkdir -p <mount_point>
hadoop-fuse-dfs dfs://<name_node_hostname>:<namenode_port> <mount_point>

What OS and version of HDFS do you use?

thSoft

You have to add the CDH5 repository first (tested on 15.04):

wget http://archive.cloudera.com/cdh5/one-click-install/trusty/amd64/cdh5-repository_1.0_all.deb sudo dpkg -i cdh5-repository_1.0_all.deb sudo apt-get update

Then proceed with @AlexDvoretsky's answer.

Belrog

Alternative instructions for CDH5 repository installation on Ubuntu 16.04: From Cloudera.

sudo wget 'https://archive.cloudera.com/cdh5/debian/wheezy/amd64/cdh/cloudera.list' -O /etc/apt/sources.list.d/cloudera.list sudo apt-get update sudo apt-get install hadoop-hdfs-fuse

Then back to @AlexDvoretsky's answer

I developed a python program that uses FUSE to mount HDFS as a standard filesystem, it also works with Kerberos and it works well: https://github.com/EDS-APHP/py-hdfs-mount

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!