Issue Details (XML | Word | Printable)

Key: HADOOP-4
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Pete Wyckoff
Reporter: John Xing
Votes: 4
Watchers: 9
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

tool to mount dfs on linux

Created: 05/Feb/06 03:55 AM   Updated: 08/Jul/09 05:05 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
GZip Archive Licensed for inclusion in ASF works fuse-dfs.tar.gz 2008-02-21 12:57 AM Pete Wyckoff 172 kB
GZip Archive Licensed for inclusion in ASF works fuse-dfs.tar.gz 2008-02-21 12:40 AM Pete Wyckoff 112 kB
GZip Archive Licensed for inclusion in ASF works fuse-dfs.tar.gz 2008-02-08 10:42 PM Pete Wyckoff 112 kB
GZip Archive Licensed for inclusion in ASF works fuse-dfs.tar.gz 2008-02-07 10:12 PM Pete Wyckoff 5 kB
GZip Archive Licensed for inclusion in ASF works fuse-dfs.tar.gz 2007-12-13 11:00 PM Pete Wyckoff 5 kB
GZip Archive Licensed for inclusion in ASF works fuse-hadoop-0.1.0_fuse-j.2.2.3_hadoop.0.5.0.tar.gz 2006-08-17 05:35 PM Nguyen Quoc Mai 27 kB
GZip Archive Licensed for inclusion in ASF works fuse-hadoop-0.1.0_fuse-j.2.4_hadoop.0.5.0.tar.gz 2006-08-17 05:36 PM Nguyen Quoc Mai 27 kB
GZip Archive Licensed for inclusion in ASF works fuse-hadoop-0.1.1.tar.gz 2006-02-05 04:06 AM John Xing 5 kB
GZip Archive Licensed for inclusion in ASF works fuse-j-hadoopfs-03.tar.gz 2007-12-12 07:31 PM Anurag Sharma 11 kB
File Licensed for inclusion in ASF works fuse_dfs.c 2008-03-19 06:38 PM Craig Macdonald 25 kB
Text File Licensed for inclusion in ASF works fuse_dfs.c 2008-02-21 12:25 AM Pete Wyckoff 23 kB
Text File Licensed for inclusion in ASF works fuse_dfs.c 2008-02-20 11:13 PM Pete Wyckoff 23 kB
Text File Licensed for inclusion in ASF works fuse_dfs.c 2008-01-24 07:24 PM Pete Wyckoff 23 kB
Text File Licensed for inclusion in ASF works fuse_dfs.c 2007-12-11 12:00 AM Pete Wyckoff 16 kB
File Licensed for inclusion in ASF works fuse_dfs.sh 2008-02-20 02:52 PM Craig Macdonald 0.6 kB
GZip Archive Licensed for inclusion in ASF works fuse_dfs.tar.gz 2008-04-10 11:44 PM Pete Wyckoff 21 kB
Text File Licensed for inclusion in ASF works HADOOP-4.patch 2008-05-06 11:15 PM Doug Cutting 65 kB
Text File Licensed for inclusion in ASF works HADOOP-4.patch 2008-05-06 12:58 AM Pete Wyckoff 64 kB
Text File Licensed for inclusion in ASF works HADOOP-4.patch 2008-05-05 11:33 PM Pete Wyckoff 63 kB
Text File Licensed for inclusion in ASF works HADOOP-4.patch 2008-05-05 11:32 PM Pete Wyckoff 63 kB
Text File Licensed for inclusion in ASF works HADOOP-4.patch 2008-05-02 09:48 PM Doug Cutting 95 kB
Text File Licensed for inclusion in ASF works HADOOP-4.patch 2008-04-29 09:26 PM Doug Cutting 95 kB
Text File Licensed for inclusion in ASF works HADOOP-4.patch 2008-04-29 09:24 PM Doug Cutting 95 kB
File Makefile 2008-01-28 06:31 PM Sami Siren 0.2 kB
Text File Licensed for inclusion in ASF works patch.txt 2008-04-15 06:47 PM Pete Wyckoff 61 kB
Text File Licensed for inclusion in ASF works patch.txt 2008-04-11 12:54 AM Pete Wyckoff 80 kB
Text File Licensed for inclusion in ASF works patch2.txt 2008-04-17 11:37 PM Pete Wyckoff 61 kB
Text File Licensed for inclusion in ASF works patch3.txt 2008-04-26 01:47 AM Pete Wyckoff 97 kB
Text File Licensed for inclusion in ASF works patch4.txt 2008-04-30 12:52 AM Pete Wyckoff 94 kB
Text File Licensed for inclusion in ASF works patch4.txt 2008-04-29 05:38 PM Pete Wyckoff 94 kB
Text File Licensed for inclusion in ASF works patch4.txt 2008-04-28 07:00 PM Pete Wyckoff 94 kB
Text File Licensed for inclusion in ASF works patch5.txt 2008-05-01 06:36 PM Pete Wyckoff 94 kB
Text File Licensed for inclusion in ASF works patch6.txt 2008-05-20 09:09 PM Pete Wyckoff 94 kB
Text File Licensed for inclusion in ASF works patch6.txt 2008-05-01 09:47 PM Pete Wyckoff 94 kB
Environment:
OSs that support FUSE. Includes Linux, MacOSx, OpenSolaris... http://fuse.sourceforge.net/wiki/index.php/OperatingSystems
Issue Links:
Duplicate
 

Release Note:
Introduced FUSE module for HDFS. Module allows mount of HDFS as a Unix filesystem, and optionally the export of that mount point to other machines. Writes are disabled. rmdir, mv, mkdir, rm are supported, but not cp, touch, and the like. Usage information is attached to the Jira record.

Resolution Date: 29/May/08 08:18 PM


 Description  « Hide
This is a FUSE module for Hadoop's HDFS.

It allows one to mount HDFS as a Unix filesystem and optionally export
that mount point to other machines.

rmdir, mv, mkdir, rm are all supported. just not cp, touch, ..., but actual writes require: https://issues.apache.org/jira/browse/HADOOP-3485

For the most up-to-date documentation, see: http://wiki.apache.org/hadoop/MountableHDFS

BUILDING:

Requirements:

1. a Linux kernel > 2.6.9 or a kernel module from FUSE - i.e., you
compile it yourself and then modprobe it. Better off with the
former option if possible. (Note for now if you use the kernel
with fuse included, it doesn't allow you to export this through NFS
so be warned. See the FUSE email list for more about this.)

2. FUSE should be installed in /usr/local or FUSE_HOME ant
environment variable

To build:

1. in HADOOP_HOME: ant compile-contrib -Dcompile.c++=1 -Dfusedfs=1 -Dlibhdfs=1

NOTE: for amd64 architecture, libhdfs will not compile unless you edit
the Makefile in src/c++/libhdfs/Makefile and set OS_ARCH=amd64
(probably the same for others too).

--------------------------------------------------------------------------------

CONFIGURING:

Look at all the paths in fuse_dfs_wrapper.sh and either correct them
or set them in your environment before running. (note for automount
and mount as root, you probably cannnot control the environment, so
best to set them in the wrapper)

INSTALLING:

1. mkdir /mnt/dfs (or wherever you want to mount it)

2. fuse_dfs_wrapper.sh dfs://hadoop_server1.foo.com:9000 /mnt/dfs -d
; and from another terminal, try ls /mnt/dfs

If 2 works, try again dropping the debug mode, i.e., -d

(note - common problems are that you don't have libhdfs.so or
libjvm.so or libfuse.so on your LD_LIBRARY_PATH, and your CLASSPATH
does not contain hadoop and other required jars.)

--------------------------------------------------------------------------------

DEPLOYING:

in a root shell do the following:

1. add the following to /etc/fstab -
fuse_dfs#dfs://hadoop_server.foo.com:9000 /mnt/dfs fuse
allow_other,rw 0 0

2. mount /mnt/dfs Expect problems with not finding fuse_dfs. You will
need to probably add this to /sbin and then problems finding the
above 3 libraries. Add these using ldconfig.

--------------------------------------------------------------------------------

EXPORTING:

Add the following to /etc/exports:

/mnt/hdfs *.foo.com(no_root_squash,rw,fsid=1,sync)

NOTE - you cannot export this with a FUSE module built into the kernel

  • e.g., kernel 2.6.17. For info on this, refer to the FUSE wiki.
    --------------------------------------------------------------------------------

ADVANCED:

you may want to ensure certain directories cannot be deleted from the
shell until the FS has permissions. You can set this in the build.xml
file in src/contrib/fuse-dfs/build.xml



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.