艾辉 发表于 2017-5-23 15:20:03

kafka源码编译

 git clone http://git-wip-us.apache.org/repos/asf/kafka.git D:\git\kafka
 
  https://kafka.apache.org/downloads.html
 
 安装gradle
 
 到kafka目录下
 
 运行gradle wrapper,解决找不到类
 If you just checked out the code, you don't have the gradle wrapper library and you'll get an error message after running `./gradlew`:
"Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain"
To fix it you need to run `gradle wrapper` first which will download the gradle wrapper (you need to have gradle >= 1.7 installed locally).
 
运行
./gradlew eclipse
 
gradle idea
 
 gradle build -x test
其中的-x test表示跳过unit test
 
  https://cwiki.apache.org/confluence/display/KAFKA/Developer+Setup
  https://docs.gradle.org/current/userguide/gradle_wrapper.html
 
 
页: [1]
查看完整版本: kafka源码编译