Download Kafka binary file then extract then go to kafka root folder and open the terminal in macbook.Then run below commands:
manojrajput@Manojs-MacBook-Pro kafka_2.13-3.4.0 % ~/kafka_2.13-3.4.0/bin/zookeeper-server-start.sh ~/kafka_2.13-3.4.0/config/zookeeper.properties
manojrajput@Manojs-MacBook-Pro kafka_2.13-3.4.0 % sh bin/kafka-server-start.sh config/server.properties