aaahd 发表于 2016-12-10 08:42:09

mac 下hadoop 0.23.6 源码编译

  1、获得源代码
  git clone git://git.apache.org/hadoop-common.git
  2、protobuf 2.4
  https://code.google.com/p/protobuf/downloads/detail?name=protobuf-2.4.1.tar.gz
  3、mvn clean install -Dmaven.test.skip=true
  4、mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
  5、导入common工程目录下的 hadoop-common-project 
  编译会出错,记得把target目下生成带代码作为源码加入到build path就好了。
  6、hdfs 、yarn 照样处理就好
页: [1]
查看完整版本: mac 下hadoop 0.23.6 源码编译