kerberos - Konfiguring Hortonworks NiFI with kerberized Kafka -
i have been trying configure hdf 1.2.0 nifi work kerberized kafka, no avail. here zookeeper-jaas.conf:
client { com.sun.security.auth.module.krb5loginmodule required usekeytab=true keytab="./conf/user.keytab" storekey=true useticketcache=false principal="user@realm.com”; }; kafkaclient { com.sun.security.auth.module.krb5loginmodule required useticketcache=true renewticket=true servicename="kafka" usekeytab=true keytab="./conf/user.keytab" principal="user@realm.com"; };
i getting errors when starting putkafka processor:
caused by: java.io.ioexception: configuration error: line 8: expected [option key] @ sun.security.provider.configfile$spi.ioexception(configfile.java:666) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi.match(configfile.java:562) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi.parseloginentry(configfile.java:477) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi.readconfig(configfile.java:427) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi.init(configfile.java:329) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi.init(configfile.java:227) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi.access$000(configfile.java:115) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi$1.run(configfile.java:180) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi$1.run(configfile.java:169) ~[na:1.8.0_66] @ java.security.accesscontroller.doprivileged(native method) ~[na:1.8.0_66] @ sun.security.provider.configfile$spi.<init>(configfile.java:169) ~[na:1.8.0_66] @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) ~[na:1.8.0_66] @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) ~[na:1.8.0_66] @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) ~[na:1.8.0_66] @ java.lang.reflect.constructor.newinstance(constructor.java:422) ~[na:1.8.0_66] @ java.security.provider$service.newinstance(provider.java:1609) ~[na:1.8.0_66] ... 26 common frames omitted
i have added
authprovider.1=org.apache.zookeeper.server.auth.saslauthenticationprovider jaasloginrenew=3600000 requireclientauthscheme=sasl
to zookeeper.properties file. set bootstrap.conf
java.arg.15=-djava.security.auth.login.config=./conf/zookeeper-jaas.conf
i have checked zookeeper-jaas.conf many times , cannot identify error. pointers appreciated.
looks syntactical error in file, not sure exactly. recreating contents works, seems whitespace or other character reason error.
Comments
Post a Comment