-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
executable file
·98 lines (79 loc) · 1.86 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
============
HDFS-FUSE
============
HDFS-FUSE lets you to mount a HDFS in userspace.
===========
How to use
===========
on Linux 2.6:
FUSE:
# yum install fuse fuse-libs fuse-devel (Redhat/SuSE)
# sudo apt-get install fuse fuse-libs fuse-devel (Debian/Ubuntu)
Hadoop:
$ tar xvzf hadoop-0.18.1.tar.gz
$ cd xvzf hadoop-0.18.1/bin
(for Pseudo-Distributed mode)
$ ./hadoop namenode -format
$ ./start-all.sh
(Java Runtime Environment is needed to run Hadoop, see Hadoop's reference)
HDFS-FUSE:
$ tar xvzf hdfs-fuse.<ARCH>.tar.gz
$ cd hdfs-fuse.<ARCH>/conf (modify hdfs-fuse.conf for your Hadoop cluster)
$ cd ../bin
(To mount)
$ export JAVA_HOME=<your-java-installation-directory>
$ export HADOOP_HOME=<your-hadoop-installation-directory>
$ export FUSE_HOME=<your-fuse-installation-directory>
$ export HDFS-FUSE_HOME=<the-current-directory>
$ export HDFS-FUSE_CONF=<the-current-directory>/conf
$ ./hdfs-mount <your-mount-point>
(To umount)
$ fusermount -u <your-mount-point>
============
Notes
============
The current implementation of HDFS-FUSE only supported a limited set of filesystem feature.
Supported operation:
getattr()
mkdir()
rmdir()
unlink()
rename()
truncate()
open()
read()
write()
statfs()
flush()
release()
readdir()
init()
destroy()
access()
create()
ftruncate()
fgetattr()
Fake implementation:
chmod()
chown()
utime()
setxattr()
getxattr()
listxattr()
removexattr()
Not supported:
readlink()
mknod()
symlink()
link()
fsync()
opendir()
fsyncdir()
lock()
bmap()
Future roadmap plan:
More feature implementation with Hadoop trunk release
======================
Questions / Bug report
======================
If you have any question or comment, feel free to send email to <jass.zhao@gmail.com>