hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Weiming Lu <weimin...@gmail.com>
Subject Re: Help with fuse-dfs
Date Sat, 19 Dec 2009 07:07:39 GMT
Thanks for you reply. I uncommented "//#define DOTRACE" in fuse_dfs.c,
and recompile, and do "./fuse_dfs_wrapper.sh dfs://10.15.62.4:54310
/mnt/dfs -d" and "strace ls /mnt/dfs" again. The output of the
"fuse_dfs_wrapper.sh"  is:
port=54310,server=10.15.62.4
fuse-dfs didn't recognize /mnt/dfs,-2
fuse-dfs ignoring option -d
fuse-dfs ignoring option allow_other
FUSE library version: 2.8.1
nullpath_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.9
flags=0x0000000b
max_readahead=0x00020000
   INIT: 7.12
   flags=0x00000011
   max_readahead=0x00020000
   max_write=0x00020000
   unique: 1, success, outsize: 40
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56
getattr /
fuse_dfs TRACE - getattr /
   unique: 2, success, outsize: 120
unique: 3, opcode: OPENDIR (27), nodeid: 1, insize: 48
   unique: 3, success, outsize: 32
unique: 4, opcode: READDIR (28), nodeid: 1, insize: 80
readdir[0] from 0
fuse_dfs TRACE - readdir /
   unique: 4, success, outsize: 200
unique: 5, opcode: RELEASEDIR (29), nodeid: 1, insize: 64
   unique: 5, success, outsize: 16

Does It seem OK?

And the output of "strace ls /mnt/dfs" still is :
execve("/bin/ls", ["ls", "/mnt/dfs"], [/* 26 vars */]) = 0
brk(0)                                  = 0x61a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f498023a000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f4980238000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=45480, ...}) = 0
mmap(NULL, 45480, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f498022c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/librt.so.1", O_RDONLY)       = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\"\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=35752, ...}) = 0
mmap(NULL, 2132976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f497fe14000
mprotect(0x7f497fe1c000, 2093056, PROT_NONE) = 0
mmap(0x7f498001b000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f498001b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libselinux.so.1", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240Q\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=109368, ...}) = 0
mmap(NULL, 2209176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f497fbf8000
mprotect(0x7f497fc11000, 2097152, PROT_NONE) = 0
mmap(0x7f497fe11000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7f497fe11000
mmap(0x7f497fe13000, 1432, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f497fe13000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libacl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\33\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=27600, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f498022b000
mmap(NULL, 2122744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f497f9f1000
mprotect(0x7f497f9f7000, 2097152, PROT_NONE) = 0
mmap(0x7f497fbf7000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f497fbf7000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\345"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1502520, ...}) = 0
mmap(NULL, 3609304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f497f67f000
mprotect(0x7f497f7e8000, 2093056, PROT_NONE) = 0
mmap(0x7f497f9e7000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x168000) = 0x7f497f9e7000
mmap(0x7f497f9ec000, 17112, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f497f9ec000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320W\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=130214, ...}) = 0
mmap(NULL, 2208624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f497f463000
mprotect(0x7f497f47a000, 2093056, PROT_NONE) = 0
mmap(0x7f497f679000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f497f679000
mmap(0x7f497f67b000, 13168, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f497f67b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\r\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14608, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f498022a000
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f497f25f000
mprotect(0x7f497f261000, 2097152, PROT_NONE) = 0
mmap(0x7f497f461000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f497f461000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libattr.so.1", O_RDONLY)     = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=16128, ...}) = 0
mmap(NULL, 2111240, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7f497f05b000
mprotect(0x7f497f05f000, 2093056, PROT_NONE) = 0
mmap(0x7f497f25e000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f497f25e000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f4980229000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f4980228000
arch_prctl(ARCH_SET_FS, 0x7f4980228780) = 0
mprotect(0x7f497f461000, 4096, PROT_READ) = 0
mprotect(0x7f497f679000, 4096, PROT_READ) = 0
mprotect(0x7f497f9e7000, 16384, PROT_READ) = 0
mprotect(0x7f498001b000, 4096, PROT_READ) = 0
mprotect(0x7f498023b000, 4096, PROT_READ) = 0
munmap(0x7f498022c000, 45480)           = 0
set_tid_address(0x7f4980228810)         = 12646
set_robust_list(0x7f4980228820, 0x18)   = 0
futex(0x7fff882397fc, 0x81 /* FUTEX_??? */, 1) = 0
rt_sigaction(SIGRTMIN, {0x7f497f468660, [], SA_RESTORER|SA_SIGINFO,
0x7f497f4720f0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f497f4686f0, [],
SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f497f4720f0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x61a000
brk(0x63b000)                           = 0x63b000
open("/etc/selinux/config", O_RDONLY)   = -1 ENOENT (No such file or directory)
statfs("/selinux", 0x7fff88238720)      = -1 ENOENT (No such file or directory)
open("/proc/mounts", O_RDONLY)          = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f4980237000
read(3, "rootfs / rootfs rw 0 0\nnone /sys"..., 1024) = 948
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x7f4980237000, 4096)            = 0
open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f4980237000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f4980237000, 4096)            = 0
open("/usr/lib/locale/zh_CN/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/locale/zh/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale-langpack/zh_CN/LC_IDENTIFICATION", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/zh/LC_IDENTIFICATION", O_RDONLY) = -1
ENOENT (No such file or directory)
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=33, ws_col=122, ws_xpixel=0, ws_ypixel=0}) = 0
stat("/mnt/dfs", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open("/mnt/dfs", O_RDONLY|O_NONBLOCK|O_DIRECTORY|0x80000) = 3
fstat(3, {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
fcntl(3, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
getdents(3, 0x61fec8, 512)              = -1 EIO (Input/output error)
write(2, "ls: ", 4ls: )                     = 4
write(2, "reading directory /mnt/dfs", 26reading directory /mnt/dfs) = 26
write(2, ": Input/output error", 20: Input/output error)    = 20
write(2, "\n", 1
)                       = 1
close(3)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(2)                           = ?
Process 12646 detached

Weiming

On Sat, Dec 19, 2009 at 2:52 AM, Eli Collins <eli@cloudera.com> wrote:
> Thanks for the info.  Please uncomment "//#define DOTRACE" in
> fuse_dfs.h, recompile, and ls /mnt/dfs again and post the trace. That
> will help identify the particular error that's causing the failure
> below.
>
>> getdents(3, 0x61fec8, 512)              = -1 EIO (Input/output error)
>> write(2, "ls: ", 4ls: )                     = 4
>> write(2, "reading directory /mnt/dfs", 26reading directory /mnt/dfs) = 26
>> write(2, ": Input/output error", 20: Input/output error)    = 20
>> write(2, "\n", 1
>
> Thanks,
> Eli
>

Mime
View raw message