kerberosapache-zeppelinlivy

How can I run zeppelin with keberos in CDH 6.3.2


zeppelin 0.9.0 does not work with Kerberos

I have add "zeppelin.server.kerberos.keytab" and "zeppelin.server.kerberos.principal" in zeppelin-site.xml

But I aldo get error "Client cannot authenticate via:[TOKEN, KERBEROS]; Host Details : local host is: "bigdser5/10.3.87.27"; destination host is: "bigdser1":8020;"

And add "spark.yarn.keytab","spark.yarn.principal" in spark interpreters,it does not work yet.

In my spark-shell that can work with Kerberos

My kerberos step

1.admin.local -q "addprinc jzyc/hadoop"

  1. kadmin.local -q "xst -k jzyc.keytab jzyc/hadoop@JJKK.COM"

  2. copy jzyc.keytab to other server

  3. kinit -kt jzyc.keytab jzyc/hadoop@JJKK.COM

In my livy I get error "javax.servlet.ServletException: org.apache.hadoop.security.authentication.client.AuthenticationException: javax.security.auth.login.LoginException: No key to store"


Solution

  • in spark.jars

    you need hdfs://bigdser1:8020/sparklib/tispark-assembly-2.3.14.jar

    not

    hdfs://bigdser1:8020/sparklib/*