How to mount HDFS on Ubuntu 14.04

断了今生、忘了曾经 提交于 2019-11-29 03:03:26

问题


So,I can't mount HDFS on Ubuntu 14.04. Mucommander not working, fuse not working, can somebody explain me with images or make me some tutorial. Thanks, best regards.


回答1:


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?




回答2:


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.




回答3:


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




回答4:


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



来源:https://stackoverflow.com/questions/26155254/how-to-mount-hdfs-on-ubuntu-14-04

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