-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zookeeper session expire quickly? #177
Comments
Hmm, could you look at the ZK logs to see if it gives any good details about what happened? |
Hi have you solved this promblem? |
Getting similar error |
@manolama 2017-10-19 10:03:26,433 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /10.80.15.222:36604 |
OK so it does look like kerberos with ZK may be the issue. One thing you can try, if your ZK allows it, is to add |
My opentsdb version is 2.4, hbase version 1.0.2 with kerberos .
I config the opentsdb and asynchbase with offical documnet and reference the issue: #148
But I also cann't initially the opentsdb,the log is like this:
I config the opentsdb like this:
modify opentsdb.conf to add kerberos authentication :
hbase.zookeeper.quorum=linux108138:24002,linux108137:24002,linux108136:24002
hbase.zookeeper.znode.parent=/hbase
hbase.security.auth.enable=true
hbase.security.authentication=kerberos
hbase.security.simple.username=user_for_training
hbase.kerberos.regionserver.principal=hbase/[email protected]
hbase.sasl.clientconfig=Client
modify /usr/share/opentsdb/bin/tsdb to add JVMARGS:
JVMARGS=${JVMARGS-'-enableassertions -enablesystemassertions'}
JVMARGS="${JVMARGS} -Dhbase.kerberos.regionserver.principal=hbase/[email protected]"
JVMARGS="${JVMARGS} -Dhbase.sasl.clientconfig=Client"
JVMARGS="${JVMARGS} -Djava.security.login.auth.config=/usr/share/opentsdb/bin/asynchbase.jass"
JVMARGS="${JVMARGS} -Dhbase.security.authentication=kerberos"
JVMARGS="${JVMARGS} -Dzookeeper.sasl.client=false"
the jass file: asynchbase.jass:
Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
useTicketCache=true
keyTab=/opt/hadoop_keytab/user_for_training/user.keytab
principal="hbase/[email protected]";
};
The text was updated successfully, but these errors were encountered: