git clone https://github.com/apache/kafka
cd kafka
gradle clients:jar
ls ./clients/build/libs/kafka-clients-0.10.1.0-SNAPSHOT.jar
Edit build.gradle and change kafka-clients dependency version if necessary
Build jar
gradle clean jar
./bin/zookeeper-server-start.sh config/zookeeper.properties
./bin/kafka-server-start.sh config/server.properties
./bin/ConsumerProducerDemo1.sh async 5
./bin/ConsumerProducerDemo2.sh sync 10