<?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 Re: Principal not defined in configuration while starting the rest server in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145238#M44226</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/505/dsharma.html" nodeid="505"&gt;@Deepak Sharma&lt;/A&gt; I guess you are using the service principals in your configuration. Can you try using spnego principal and keytabs as mentioned below..&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hbase.rest.authentication&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;kerberos&amp;lt;/value&amp;gt;
     &amp;lt;description^&amp;gt;Enter the authentication method for the REST server.&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;
                        
&amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hbase.rest.kerberos.spnego.principal&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;HTTP/_HOST@EXAMPLE.COM&amp;lt;/value&amp;gt;
     &amp;lt;description&amp;gt;Enter the hostname of the principal.&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;
                        
&amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hbase.rest.keytab.file&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;/etc/security/keytabs/spnego.service.keytab&amp;lt;/value&amp;gt;
     &amp;lt;description&amp;gt;Enter the location of the keytab.&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 22 Oct 2016 21:10:26 GMT</pubDate>
    <dc:creator>apathan</dc:creator>
    <dc:date>2016-10-22T21:10:26Z</dc:date>
    <item>
      <title>Principal not defined in configuration while starting the rest server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145237#M44225</link>
      <description>&lt;P&gt;i was following this doc &lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_command-line-installation/content/ref-9e8edafc-6438-4354-97df-20de0fd55344.1.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_command-line-installation/content/ref-9e8edafc-6438-4354-97df-20de0fd55344.1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;configured some of the property in custom-hbase-site.xml&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8790-screen-shot-2016-10-22-at-65355-pm.png" style="width: 1818px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21506i8816BB9831E5F1AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8790-screen-shot-2016-10-22-at-65355-pm.png" alt="8790-screen-shot-2016-10-22-at-65355-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but still i am getting same error after starting hbase rest server&lt;/P&gt;&lt;PRE&gt;2016-10-22 13:19:24,423 WARN  [main] mortbay.log: Error starting handlersjavax.servlet.ServletException: javax.servlet.ServletException: Principal not defined in configuration        at org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler.init(KerberosAuthenticationHandler.java:241)        at org.apache.hadoop.security.authentication.server.AuthenticationFilter.initializeAuthHandler(AuthenticationFilter.java:247)        at org.apache.hadoop.security.authentication.server.AuthenticationFilter.init(AuthenticationFilter.java:233)        at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)        at org.mortbay.jetty.Server.doStart(Server.java:224)        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)        at org.apache.hadoop.hbase.rest.RESTServer.main(RESTServer.java:310)Caused by: javax.servlet.ServletException: Principal not defined in configuration        at org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler.init(KerberosAuthenticationHandler.java:186)        ... 12 more2016-10-22 13:19:24,426 WARN  [main] mortbay.log: Nested in javax.servlet.ServletException: javax.servlet.ServletException: Principal not defined in configuration:javax.servlet.ServletException: Principal not defined in configuration        at org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler.init(KerberosAuthenticationHandler.java:186)        at org.apache.hadoop.security.authentication.server.AuthenticationFilter.initializeAuthHandler(AuthenticationFilter.java:247)        at org.apache.hadoop.security.authentication.server.AuthenticationFilter.init(AuthenticationFilter.java:233)        at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)        at org.mortbay.jetty.Server.doStart(Server.java:224)        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)        at org.apache.hadoop.hbase.rest.RESTServer.main(RESTServer.java:310)2016-10-22 13:19:24,469 INFO  [main] mortbay.log: Started SslSelectChannelConnector@0.0.0.0:17000&lt;/PRE&gt;&lt;P&gt;note this is a ssl enabled and secure cluster , please let me know if i have missed something , thanks in advance.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6733iE97F94A6EE002BE6/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="screen-shot-2016-10-22-at-65355-pm.png" title="screen-shot-2016-10-22-at-65355-pm.png" /&gt;</description>
      <pubDate>Mon, 19 Aug 2019 07:48:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145237#M44225</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2019-08-19T07:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Principal not defined in configuration while starting the rest server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145238#M44226</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/505/dsharma.html" nodeid="505"&gt;@Deepak Sharma&lt;/A&gt; I guess you are using the service principals in your configuration. Can you try using spnego principal and keytabs as mentioned below..&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hbase.rest.authentication&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;kerberos&amp;lt;/value&amp;gt;
     &amp;lt;description^&amp;gt;Enter the authentication method for the REST server.&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;
                        
&amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hbase.rest.kerberos.spnego.principal&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;HTTP/_HOST@EXAMPLE.COM&amp;lt;/value&amp;gt;
     &amp;lt;description&amp;gt;Enter the hostname of the principal.&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;
                        
&amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hbase.rest.keytab.file&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;/etc/security/keytabs/spnego.service.keytab&amp;lt;/value&amp;gt;
     &amp;lt;description&amp;gt;Enter the location of the keytab.&amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Oct 2016 21:10:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145238#M44226</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-10-22T21:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Principal not defined in configuration while starting the rest server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145239#M44227</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/40/apathan.html" nodeid="40"&gt;@Ayub Khan&lt;/A&gt; thank you for your answer but even after using spnego keytab i face same issue &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 21:12:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145239#M44227</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2016-10-22T21:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Principal not defined in configuration while starting the rest server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145240#M44228</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/505/dsharma.html" nodeid="505"&gt;@Deepak Sharma&lt;/A&gt;&lt;P&gt;Looking at the &lt;A href="https://fossies.org/linux/hadoop/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/KerberosAuthenticationHandler.java"&gt;kerberosAuthenticationHandler&lt;/A&gt; code(at line number 183), seems like your configuration has missing properties. Please add below props and let me know if it works..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hbase.rest.authentication.kerberos.principal&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;HTTP/_HOST@HADOOP.LOCALDOMAIN&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hbase.rest.authentication.kerberos.keytab&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;$KEYTAB&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For more information, please refer to &lt;A href="https://hbase.apache.org/book.html#security.example.config" target="_blank"&gt;https://hbase.apache.org/book.html#security.example.config&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 22:13:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145240#M44228</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-10-22T22:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Principal not defined in configuration while starting the rest server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145241#M44229</link>
      <description>&lt;P&gt;I have verified by adding above missing properties, hbase startup is successful and things look good. Please try and confirm.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8801-hbase-rest-missing-props.png" style="width: 989px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21505i0D26FBA6C34452AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8801-hbase-rest-missing-props.png" alt="8801-hbase-rest-missing-props.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 07:48:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145241#M44229</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2019-08-19T07:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Principal not defined in configuration while starting the rest server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145242#M44230</link>
      <description>&lt;P&gt;Thank you ayub &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; this error resolved after add these properties , now i am seeing other error that seems some thing related to SSL&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 23:58:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Principal-not-defined-in-configuration-while-starting-the/m-p/145242#M44230</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2016-10-23T23:58:03Z</dc:date>
    </item>
  </channel>
</rss>

