<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question kerberos livy :- &amp;quot;requirement failed: Kerberos requires livy.server.kerberos.keytab to be provided.&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/kerberos-livy-quot-requirement-failed-Kerberos-requires-livy/m-p/179828#M142074</link>
    <description>&lt;P&gt;Hello I am using kerberoized HDP 2.5.3 and I am trying out livy.&lt;/P&gt;&lt;P&gt;I have setup according to &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_command-line-installation/content/configure_livy.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_command-line-installation/content/configure_livy.html&lt;/A&gt; and without kerberos livy server can startup and response to http request.&lt;/P&gt;&lt;P&gt;However if I add the kerberos section in livy.conf then I get this in the log:&lt;/P&gt;&lt;PRE&gt;[root@master conf]# tail -1000f /var/log/livy/livy-livy-server.out
log4j:WARN No appenders could be found for logger (com.cloudera.livy.server.LivyServer).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Exception in thread "main" java.lang.IllegalArgumentException: requirement failed: Kerberos requires livy.server.kerberos.keytab to be provided.
        at scala.Predef$.require(Predef.scala:233)
        at com.cloudera.livy.server.LivyServer.runKinit(LivyServer.scala:173)
        at com.cloudera.livy.server.LivyServer.start(LivyServer.scala:134)
        at com.cloudera.livy.server.LivyServer$.main(LivyServer.scala:277)
        at com.cloudera.livy.server.LivyServer.main(LivyServer.scala)


&lt;/PRE&gt;&lt;P&gt;Any idea?  Following is the livy.conf&lt;/P&gt;&lt;PRE&gt;[root@master conf]# cat /etc/livy/conf/livy.conf
livy.spark.master = yarn
livy.spark.deployMode = cluster
livy.environment production
livy.impersonation.enabled true
livy.server.csrf_protection.enabled true
livy.server.port 8998
livy.server.session.timeout 3600000
livy.server.recovery.mode off


#livy.server.auth.type = kerberos
livy.server.launch.kerberos.keytab = /etc/security/keytabs/livy.headless.keytab
livy.server.launch.kerberos.principal = livy/_HOST@LBG.COM


#livy.server.kerberos.keytab = /etc/security/keytabs/livy.headless.keytab
livy.server.auth.kerberos.keytab /etc/security/keytabs/spnego.service.keytab
livy.server.auth.kerberos.principal HTTP/_HOST@LBG.COM


livy.superusers=livy


&lt;/PRE&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2017 19:52:48 GMT</pubDate>
    <dc:creator>David_Tam</dc:creator>
    <dc:date>2017-05-19T19:52:48Z</dc:date>
  </channel>
</rss>

