Hadoop Pipes程序运行报错Server failed to authenticate解决方法

这个问题网络上已经给出了解决方法——需要重新编译hadooputils和hadooppipes

源码都在$(HADOOP_HOME)/src/c++/下,编译hadooputils好编译,但是编译hadooppipes时遇到了些问题

我下载的是hadoop-0.20.203.0rc1.tar.gz版本


hadoop@keljony-laptop:/usr/local/hadoop/src/c++/pipes$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for HMAC_Init in -lssl... no
configure: error: Cannot find libssl.so
./configure: line 5166: exit: please: numeric argument required
./configure: line 5166: exit: please: numeric argument required
hadoop@keljony-laptop:/usr/local/hadoop/src/c++/pipes$ 


错误提示:

checking for HMAC_Init in -lssl... no
configure: error: Cannot find libssl.so


可我明明已经装上了openssl,网络上这类错误的解决方法没怎么找到。

分析configure,研究openssl/hmac.h代码,捣鼓了许久,最终找出是因为少了链接上crypto库


编辑configure文件

# vi ./configure

找到5079和5161行

LIBS="-lssl $LIBS"

加上-lcrypto

LIBS="-lssl -lcrypto $LIBS"

保存退出再次configure通过

你可能感兴趣的:(Hadoop Pipes程序运行报错Server failed to authenticate解决方法)