安装protobuf
点击从百度云网盘下载
hadoop-2.6.0源码编译
hadoop-2.6.0项目导入到eclipse
1、生成eclipse工程文件
遇到错误:
解决办法:
2、导入到eclipse
File >> Import >> Existing Projects into Workspace,选择hadoop-2.6.0-src,然后确认。
3、项目错误解决
错误1:org.apache.hadoop.ipc.protobuf.× 无法解析
错误2:AvroRecord cannot be resolved to a type TestAvroSerialization.java
下载 avro-tools-1.7.4.jar,放到hadoop-2.6.0-src目录下
错误3:Project 'hadoop-streaming' is missing required source ... Build Path Problem
右键 hadoop-streaming 项目->properties->左边Java Build Path->Source->选定错误项->右边Remove