최대 1 분 소요

authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer
super.users=User:admin;User:kafka
allow.everyone.if.no.acl.found=false
security.inter.broker.protocol=SASL_SSL

Reader User 생성

kafka-acls.sh --authorizer-properties zookepper.connect=zookeeper1.mydomain.com:2181 --add \
--allow-principal User:reader --allow-principal User:writer \
--operation Read \
--group=* \
--topic acl-test

Writer User 생성

kafka-acls.sh --authorizer-properties zookepper.connect=zookeeper1.mydomain.com:2181 --add \
--allow-principal User:writer \
--operation Writer \
--topic acl-test
kafka-acls.sh --authorizer-properties zookepper.connect=zookeeper1.mydomain.com:2181 --add \
--list  \
--topic acl-test

Read 권한 삭제

kafka-acls.sh --authorizer-properties zookeeper.connect=zookeeper1.mydomain.com:2181 \
--remove \
--allow-principal User:reader
--topic acl-test

태그:

카테고리:

업데이트:

댓글남기기