Hadoop代码导入IDEA On Mac

安装指定版本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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容