完整错误为:
Invalid config, exiting abnormally org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing C:\zookeeper-3.4.6\bin…\conf\zoo.cfg
解决办法:将解压目录的conf文件夹下的zoo_sample.cfg文件中的dataDir= 改为zookeeper解压的目录,然后将整个文件改名为zoo.cfg 在去bin目录下启动zkServer.cmd即可