大神.,我配置了sasl之后,首先在服务器上不能创建消费增者,报
disconnected (org.apache.kafka.clients.NetworkClient)
错误,其次我用java端作为client端
System.setProperty("java.security.auth.login.config","E:\\CL\\kafka_client_jaas.conf");
props.put("security.protocol","SASL_PLAINTEXT");
props.put("sasl.mechanism","PLAIN");
配置了,启动之后看不到消费的数据
只有这一个错误?
不止,,现在查看Topic和查看Topic的权限的时候会报这个错
WARN SASL configuration failed: javax.security.auth.login.LoginException: No JAAS configuration section named 'Client' was found in specified JAAS configuration file: '/opt/kafka_2.11-1.0.0/bin/kafka_server_jaas.conf'. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it. (org.apache.zookeeper.ClientCnxn)
你的答案