kafka中启动zookeeper报错:Unable to create data directory \tmp\dataDir\zookeeper\version-2
问题
下载kafka源码后写了一个启动zookeeper的脚本,运行过程中闪退,查看日志信息报错如下:
org.apache.zookeeper.server.persistence.FileTxnSnapLog$DatadirException: Unable to create data directory \tmp\dataDir\zookeeper\version-2