hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuti Awasthi <stutiawas...@hcl.com>
Subject Unable to mount HDFS using entry in /etc/fstab
Date Thu, 12 Jan 2012 12:02:13 GMT
Hi All,
I am able to mount HDFS using fuse-dfs. I am using http://wiki.apache.org/hadoop/MountableHDFS
for the reference.
Currently able to HDFS mount using fuse_dfs_wrapper.sh and also directly executing fuse_dfs

[root@slave fuse-dfs]# fuse_dfs -oserver=slave -oport=54310 -oallow_other -ousetrash rw /mnt
fuse-dfs ignoring option allow_other
fuse-dfs didn't recognize /mnt,-2
fuse-dfs ignoring option -d
FUSE library version: 2.8.3
nullpath_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.13
   INIT: 7.12
   unique: 1, success, outsize: 40
unique: 2, opcode: STATFS (17), nodeid: 1, insize: 40
statfs /
   unique: 2, success, outsize: 96
unique: 3, opcode: GETATTR (3), nodeid: 1, insize: 56
getattr /
   unique: 3, success, outsize: 120

Now when I add the entry in /etc/fstab file and try to mount hdfs , I get the following error

Entry in /etc/fstab:
fuse_dfs#dfs://slave:54310 /mnt fuse -oallow_other,rw,-ousetrash 0 0

[root@slave fuse-dfs]# mount /mnt
fuse-dfs didn't recognize /mnt,-2
fuse-dfs ignoring option -oallow_other
fuse-dfs ignoring option -ousetrash
fuse-dfs ignoring option dev
fuse-dfs ignoring option suid
fuse: unknown option `-oallow_other'

Exported env variable:

declare -x CLASSPATH="/root/MountHDFS/hadoop-0.20.2/lib/commons-cli-1.2.jar:/root/MountHDFS/hadoop-0.20.2/lib/commons-codec-1.3.jar:/root/MountHDFS/hadoop-0.20.2/lib/commons-el-1.0.jar:/root/MountHDFS/hadoop-0.20.2/lib/commons-httpclient-3.0.1.jar:/root/MountHDFS/hadoop-0.20.2/lib/commons-logging-1.0.4.jar:/root/MountHDFS/hadoop-0.20.2/lib/commons-logging-api-1.0.4.jar:/root/MountHDFS/hadoop-0.20.2/lib/commons-net-1.4.1.jar:/root/MountHDFS/hadoop-0.20.2/lib/core-3.1.1.jar:/root/MountHDFS/hadoop-0.20.2/lib/hsqldb-"
declare -x FUSE_HOME="/usr/include/fuse"
declare -x HADOOP_HOME="/root/MountHDFS/hadoop-0.20.2"
eclare -x JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-"
declare -x LD_LIBRARY_PATH="/usr/lib:/usr/lib64:/usr/local/lib:/usr/local/lib64:/root/MountHDFS/hadoop-0.20.2/build/libhdfs:/usr/lib/jvm/java-1.6.0-openjdk-"
declare -x PATH="/usr/include/fuse:/usr/include/fuse.h:/lib64/libfuse.so.2:/lib64:/usr/lib64:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/lib/jvm/java-1.6.0-openjdk-"

Has anyone also faced same issue. Please suggest me how to fix this.

Stuti Awasthi
HCL Comnet Systems and Services Ltd
F-8/9 Basement, Sec-3,Noida.


The contents of this e-mail and any attachment(s) are confidential and intended for the named
recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or
opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of
HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and
/ or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited.
If you have
received this email in error please delete it and notify the sender immediately. Before opening
any mail and
attachments please check them for viruses and defect.


View raw message