hadoop的工程是我在电脑上重新编译成32位的,但是直接使用hadoop权威指南的C++文件以及makefile会报错。
makefile:
cc = g++
CPPFLAGS = -m32 -I$(HADOOP_DEV_HOME)/include
maxTemperature:MaxTemperature.cpp
$(cc) $(CPPFLAGS) $< -lm -Wall -L$(HADOOP_DEV_HOME)/lib/native -lhadooppipes -lhadooputils -lpthread -g -O2 -o $@
clean:
rm maxTemperature
其