solr - java.io.IOException: Running in secure mode, but config doesn't have a keytab -
i config lily using cdh5 commandline. follow document @ search_config_hbase_indexer_for_search.
my config file :
cat /etc/default/solr solr_port=8983 solr_admin_port=8984 solr_log=/var/log/solr solr_zk_ensemble=host-172-17-110-81:2181/solr solr_hdfs_home=hdfs://hadoop-jkzl:8020/solr solr_hdfs_config=/etc/hadoop/conf solr_kerberos_enabled=true solr_kerberos_keytab=/etc/solr/conf/solr.keytab solr_kerberos_principal=solr/host-172-17-110-81@jkzl #solr_authentication_type=simple solr_authentication_type=kerberos solr_authentication_simple_allow_anon=true solr_authentication_kerberos_keytab=/etc/solr/conf/solr.keytab solr_authentication_kerberos_principal=http/host-172-17-110-81@jkzl solr_authentication_kerberos_name_rules=default solr_authentication_jaas_conf=/etc/solr/conf/jaas.conf cat /etc/solr/conf/jaas.conf client { com.sun.security.auth.module.krb5loginmodule required usekeytab=true useticketcache=false keytab="/etc/solr/conf/solr.keytab" principal="solr/host-172-17-110-81@jkzl"; }; ls -l /etc/solr/conf/solr.keytab -r--------. 1 solr hadoop 1642 oct 8 07:50 /etc/solr/conf/solr.keytab more hbase-indexer-site.xml <?xml version="1.0"?> <configuration> <property> <name>hbase.zookeeper.quorum</name> <value>host-172-17-110-49,host-172-17-110-77,host-172-17-110-78</value> </property> <property> <name>hbaseindexer.zookeeper.connectstring</name> <value>host-172-17-110-49,host-172-17-110-77,host-172-17-110-78:2181</value> </property> <property> <name>hbaseindexer.authentication.type</name> <value>kerberos</value> </property> <property> <name>hbaseindexer.authentication.kerberos.keytab</name> <value>/etc/hbase/conf/hbase.keytab</value> </property> <property> <name>hbaseindexer.authentication.kerberos.principal</name> <value>http/host-172-17-110-81@jkzl</value> </property> <property> <name>hbaseindexer.authentication.kerberos.name.rules</name> <value>default</value> </property> </configuration> more /etc/hbase-solr/conf/jaas.conf client { com.sun.security.auth.module.krb5loginmodule required usekeytab=true useticketcache=false keytab="/etc/hbase/conf/hbase.keytab" principal="hbase/host-172-17-110-81@jkzl"; }; grep login hbase-indexer-env.sh export hbase_indexer_opts="$hbase_indexer_opts -xx:+useconcmarksweepgc -djava.security.auth.login.config=/etc/hbase-solr/conf/jaas.conf"
but when add-indexer ,hbase-solr's log error:
15/10/10 03:19:41 info zookeeper.zookeeper: initiating client connection, connectstring=host-172-17-110-77:2181,host-172-17-110-49:2181,host-172-17-110-78:2181 sessiontimeout=90000 watcher=host-172-17-110-81,57865,14444471812720x0, quorum=host-172-17-110-77:2181,host-172-17-110-49:2181,host-172-17-110-78:2181, baseznode=/hbase 15/10/10 03:19:41 info client.zookeepersaslclient: client use gssapi sasl mechanism. 15/10/10 03:19:41 debug client.zookeepersaslclient: creating sasl client: client=hbase/host-172-17-110-81@jkzl;service=zookeeper;servicehostname=host-172-17-110-49 15/10/10 03:19:41 error supervisor.indexersupervisor: problem starting indexer myindexer java.io.ioexception: running in secure mode, config doesn't have keytab @ org.apache.hadoop.security.securityutil.login(securityutil.java:236) @ org.apache.hadoop.hbase.security.user$securehadoopuser.login(user.java:383) @ org.apache.hadoop.hbase.security.user.login(user.java:250) @ com.ngdata.sep.impl.sepconsumer.<init>(sepconsumer.java:163) @ com.ngdata.hbaseindexer.supervisor.indexersupervisor.startindexer(indexersupervisor.java:234) @ com.ngdata.hbaseindexer.supervisor.indexersupervisor.access$1000(indexersupervisor.java:78) @ com.ngdata.hbaseindexer.supervisor.indexersupervisor$eventworker.run(indexersupervisor.java:407) @ java.lang.thread.run(thread.java:745)
how can fix error:config doesn't have keytab
?
Comments
Post a Comment