我正在在Amazon EC2上配置的RedHat服务器上安装HAWQ。我已经在群集上安装了HDP 2.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)成功编译,我不明白为什么找不到特定文件。如果有人遇到了同样的问题,请帮忙,因为我被困在这里。

最佳答案

您能否检查文件/root/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include/hdfs/hdfs.h是否存在?
如果不是,则应该是构建缺陷,请向hawq团队开放缺陷或发送电子邮件至:[email protected]。谢谢。

08-07 12:39