export JAVA_HOME=/home/yang/java/
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export M2_HOME=/home/yang/java/maven-3.5
export PATH=$M2_HOME/bin:$PATH
mvn clean package -DskipTests=true
wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz
tar -xzvf zookeeper-3.4.10.tar.gz
cp zookeeper-3.4.10
mv conf/zoo_sample.cfg conf/zookeeper.properties
启动
./bin/zkServer.sh conf/zookeeper.properties &
http://kafka.apache.org/quickstart