无法构建fuse-dfs来挂载HDFS [英] Not able to build fuse-dfs to mount HDFS
问题描述
我想用保险丝装载Hadoop。我尝试了两种方法,但都失败了。一种方法是:
HADOOP_HOME:ant compile-c ++ - libhdfs -Dlibhdfs = 1`。
但它无法找到 build.xml
。另一种方法是在 hadoop-hdfs / target / native / main / native / fuse-dfs
中,我执行 make
但仍然没有fuse-dfs。
我应该如何构建fuse-dfs,以便我可以通过保险丝挂载HDFS?
$ mvn包-Pnative -Drequire.fuse = true -DskipTests -Dmaven.javadoc.skip = true
这条指令在稍后的fuse-dfs的README文件中(hadoop-hdfs-project / hadoop-hdfs / src / main / native / fuse-dfs / doc / README)
BUILDING
<可以通过使用Maven将require.fuse
选项设置为true来构建fuse-dfs可执行文件。例如:HADOOP_PREFIX中的
:mvn包-Pnative -Drequire.fuse = true -DskipTests -Dmaven.javadoc.skip = true
可执行文件
fuse_dfs
将位于HADOOP_PREFIX / hadoop-hdfs-project / hadoop-hdfs-native-client / target / main / native / fuse-dfs /
但2.5.2源代码指向较老的指令。
我的构建环境是CentOS 6服务器。我添加了 https://wiki.apache.org/hadoop/HowToContribute 中提到的其他软件包在本地库下:
对于RHEL(也就是CentOS):
yum -y install lzo-devel zlib-devel gcc gcc -c ++ autoconf automake libtool openssl-devel fuse-devel cmake
参考文献:
https:/ /wiki.apache.org/hadoop/HowToContribute - 构建指令
My Hadoop version is 2.5.2.
I want to mount Hadoop with fuse. I have tried two methods, but both failed. One method is in:
HADOOP_HOME: ant compile-c++-libhdfs -Dlibhdfs=1`.
But it failed for it can't find build.xml
. The other method is in hadoop-hdfs/target/native/main/native/fuse-dfs
, I execute make
but still don't have fuse-dfs.
How should I build fuse-dfs so I can mount HDFS by fuse?
I'm assuming you already have Java and Maven installed and can build the other Hadoop components. After that you run:
$ mvn package -Pnative -Drequire.fuse=true -DskipTests -Dmaven.javadoc.skip=true
This instruction is in later READMEs for fuse-dfs (hadoop-hdfs-project/hadoop-hdfs/src/main/native/fuse-dfs/doc/README)
BUILDING
fuse-dfs executable can be built by setting
require.fuse
option to true using Maven. For example: in HADOOP_PREFIX:mvn package -Pnative -Drequire.fuse=true -DskipTests -Dmaven.javadoc.skip=true
The executable
fuse_dfs
will be located at HADOOP_PREFIX/hadoop-hdfs-project/hadoop-hdfs-native-client/target/main/native/fuse-dfs/
but the 2.5.2 source refers to the older instructions.
My build environment is a CentOS 6 server. I added the additional packages mentioned in https://wiki.apache.org/hadoop/HowToContribute under Native libraries:
For RHEL (and hence also CentOS):
yum -y install lzo-devel zlib-devel gcc gcc-c++ autoconf automake libtool openssl-devel fuse-devel cmake
References:
https://wiki.apache.org/hadoop/HowToContribute - build instructions
这篇关于无法构建fuse-dfs来挂载HDFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!