私はKafkaのために私の動物園の飼育係のためにSASL認証を設定しようとしています。私は以下飼い葉桶のsasl認証の問題
https://cwiki.apache.org/confluence/display/ZOOKEEPER/Client-Server+mutual+authentication
は私server_jaas.confファイルが 以下Server {
org.apache.kafka.common.security.plain.PlainLoginModule required
username="admin"
password="admin-secret"
user_admin="admin-secret"
};
は私java.envのファイル構成である/でホームディレクトリを保たれているリンクの下に記載されたすべての手順に従っ
SERVER_JVMFLAGS="-Djava.security.auth.login.config=/home/server_jaas.conf"
以下はエラーです。
2017-08-01 16:49:40,774 [myid:] - ERROR [main:[email protected]] - No JAAS configuration section named 'Server' was foundin '/home/server_jaas.conf'.
2017-08-01 16:49:40,774 [myid:] - ERROR [main:[email protected]] - Unexpectked exception, exiting abnormally
java.io.IOException: No JAAS configuration section named 'Server' was foundin '/home/server_jaas.conf'.
at org.apache.zookeeper.server.ServerCnxnFactory.configureSaslLogin(ServerCnxnFactory.java:200)
at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:82)
at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:117)
at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:87)
at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:53)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)