本帖最后由 leongfans 于 2010-1-27 10:59 编辑
上面的做法现在好像已经不行了,我按照下面的方法,成功挂载上来了
Ok, looks like I finally was able to setup FUSE-HDFS on SLES10 box (using Hadoop-0.20.1 distribution)
As it took me a while to figure this out, I thought to share these steps with the Universe.
1. In general, my SLES10 system runs with 2.6.16.60 kernel. The OS is 64-bit.
2. Download and make FUSE. I did it with fuse-2.8.0.tar.gz. Regular configure & make &
make install worked
3. modprobe fuse
4. export JAVA_HOME=
5. export HADOOP_HOME=
6. vi $HADOOP_HOME/src/contrib/fuse-dfs/src/fuse_dfs_wrapper.sh - update the variables
(HADOOP_HOME, JAVA_HOME, ...)
7. cd $HADOOP_HOME
8. setenv ANT_OPTS "-Dhttp.proxyHost= -Dhttp.proxyPort="
This would allow you to build everything if you are behind the firewall
9. Make sure your default autoconf is v2.61, and your default ant is 1.7.1 - I've had problems
with older versions
10. ant compile -Dcompile.c++=true -Dlibhdfs=true
11. ln -s $HADOOP_HOME/build/c++/Linux-amd64-64/lib $HADOOP_HOME/build/libhdfs
12. export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:$HADOOP_HOME/build/libhdfs:$JAVA_HOME/jre/lib/amd64/server
13. ant compile-contrib -Dlibhdfs=1 -Dfusedfs=1
If everything is ok till this point, you should be ready to go. Follow http://wiki.apache.org/hadoop/MountableHDFS
procedure after INSTALLING section
有个注意的地方,就是挂载的时候,所用的url必须和conf目录下面配置的url一样,否则会出现的~ |