Hadoop代码导入IDEA On Mac

安装指定版本protobuf2.5

1. 查找protobuf所有版本

brew search protobuf

protobuf protobuf-c protobuf-swift [email protected] [email protected] [email protected]

2. 安装2.5版本 

brew install [email protected]

3. 设置PATH

echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile

获取Hadoop源码

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

编译代码

mvn clean package -Pdist -DskipTests

导入IDEA

file->open 选择hadoop_code_path

你可能感兴趣的:(Hadoop代码导入IDEA On Mac)