Hadoop代码导入IDEA On Mac

2017-06-03  本文已影响0人  imbest

安装指定版本protobuf2.5

1. 查找protobuf所有版本

brew search protobuf

protobuf protobuf-c protobuf-swift protobuf@2.5 protobuf@2.6 protobuf@3.1

2. 安装2.5版本 

brew install protobuf@2.5

3. 设置PATH

echo 'export PATH="/usr/local/opt/protobuf@2.5/bin:$PATH"' >> ~/.bash_profile

获取Hadoop源码

git clone git://git.apache.org/hadoop.git

编译代码

mvn clean package -Pdist -DskipTests

导入IDEA

file->open 选择hadoop_code_path

上一篇 下一篇

猜你喜欢

热点阅读