---
title: "kafka,zookeeper sasl 权限验证"
author: "jacklin2015"
date: "2019-06-09T14:44:52Z"
tags: []
categories: ["开源软件"]
slug: "kafka-zookeeper-sasl"
draft: false
lastmod: "2019-06-09T14:46:17Z"
id: 2441722
url: "https://jacklin2015.iteye.com/blog/2441722"
---

---------zookeeper auth------------------------------创建node
create /controller

setAcl /controller auth:admin:admin:cdrwa
-------------------------------------------------------------------

bin/zookeeper-shell.sh localhost:2181
-----------------------------------------


-------------------------------------------------------------启动kafka异常解决方法----------------------------
I0Itec.zkclient.exception.ZkException: org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth

zookeeper的根目录设置了权限导致的，把zookeeper 的 ‘/’目录的权限清除，再重启kafka不会报错。