redhat上的hawq安装

9rnv2umw  于 2021-05-29  发布在  Hadoop
关注(0)|答案(2)|浏览(549)

我正在amazonec2上配置的redhat服务器上安装hawq。我已经在集群上安装了hdp2.3。我从github克隆了hawq。
我先跑 ./configure --prefix=/opt/hawq .
第二步,我跑 make . 运行时,依赖项正在正确编译 make 从的根文件夹 incubator-hawq . 以下错误发生在 make 从移动到编译 src 根目录中的文件夹( incubator-hawq ):

make[2]: Entering directory `/root/incubator-hawq/src/port'
gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations  -I/usr/include/libxml2 -I../../src/port -DFRONTEND -I../../src/include -D_GNU_SOURCE  -I/root/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include -I/root/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include  -c -o copydir.o copydir.c
In file included from copydir.c:25:0:
../../src/include/storage/fd.h:61:23: fatal error: hdfs/hdfs.h: No such file or directory

# include "hdfs/hdfs.h"

^
compilation terminated.
make[2]:***[copydir.o] Error 1
make[2]: Leaving directory `/root/incubator-hawq/src/port'
make[1]:***[all] Error 2
make[1]: Leaving directory `/root/incubator-hawq/src'
make:***[all] Error 2

我知道编译器找不到 hdfs/hdfs.h ,但作为依赖项( libhdfs3 )编译成功,我不明白为什么找不到特定的文件。如果有人遇到和我一样的问题,请帮助我。

ugmeyewa

ugmeyewa1#

你能检查文件/root/incubator hawq/depends/libhdfs3/build/install/usr/local/hawq/include/hdfs/hdfs.h是否存在吗?如果不是,则应为build defect,请将defect打开至hawq团队或发送电子邮件至:dev@hawq.incubator.apache.org. 谢谢。

wydwbb8l

wydwbb8l2#

你有文件夹吗 incubator-hawq/depends/libhdfs3/build/install 之后 make ?
问题似乎是 libhdfs3 依赖关系未成功生成。有一些可能的原因:使用旧版本gcc(<4.7),配置错误 libhdfs3 .
为了验证我的话,你可以试试这个:

cd incubator-hawq/depends/libhdfs3
mkdir build_debug && cd build_debug
cmake ..
make

如果你能成功地做到这一点,我想你的问题还有另一个原因。在这种情况下,你能用更多的建筑线条来粘贴信息吗?
另一个可能的原因是您使用了不同的配置前缀。在这种情况下,你应该跑 make distclean 在另一个配置之前。

相关问题